Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: Andrew DeFaria Newsgroups: gmane.os.cygwin Subject: Re: [feature request] completion of paths with Windows drive letters Date: Wed, 17 Apr 2002 10:56:55 -0700 Lines: 51 Message-ID: <3CBDB767.6030101@Salira.com> References: Reply-To: cygwin AT cygwin DOT com NNTP-Posting-Host: 206.184.204.2 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1019066199 18943 206.184.204.2 (17 Apr 2002 17:56:39 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Wed, 17 Apr 2002 17:56:39 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us Chris Metcalf wrote: >Configuration Information [Automatically generated, do not change]: >Machine: i686 >OS: cygwin >Compiler: i686-pc-cygwin-gcc >Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I. -I../bash-2.05a -I../bash-2.05a/include -I../bash-2.05a/lib -g -O2 >uname output: CYGWIN_NT-4.0 CHRIS 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown >Machine Type: i686-pc-cygwin > >Bash Version: 2.05a >Patch Level: 0 >Release Status: release > >Description: > Under cygwin, it would be convenient to allow filename completion > on files including any leading drive letter. Chet Ramey pointed > out that bash tells readlist to word-break on colons, to enable > (for example) direct editing of components of $PATH. I suspect > that Cygwin users would benefit from being able to disable this > feature, and getting filename completion with drive letters. > Note that globbing does work with drive letters (of course), so > there's a consistency argument that filename completion should too. > >Repeat-By: > "ls c:/win" should expand to your Windows directory on cygwin. > >Fix: > One workaround (pointed out by Chet) is to backslash-escape > the colon. This is good to know but a bit awkward in practice. > > Another workaround, at least for C:, is to install cygwin > directly to C:/, instead of C:/cygwin, which will effectively > fix the problem for C: paths, though of course not for paths > prefixed with other drive letters. > > One possible take on this issue is as follows. There are certain > characters that bash treats as word breaks to enable additional > functionality. ":", as described above, is one. "@" is another; > some users may prefer to allow "@" in their paths, and disable > automatic hostname completion. A general solution might be to > allow specifying characters to treat as normal word characters > rather than word break characters, and allow users to specify > "", ":", "@", ":@" (etc) as they please. But a 90% solution > would certainly be to just add a shopt flag that removes colons > from the list of word-break characters passed to readlist. > You could always use something like ls /cygdrive/c/win or do like I do and change cygdrive prefix to dev with a mount command. Then it would be /dev/c/win. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/