delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/17/13:59:32

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <ADeFaria AT Salira DOT com>
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: <a9k30q$u6r$2 AT main DOT gmane DOT org>
Reply-To: cygwin AT cygwin DOT com
NNTP-Posting-Host: 206.184.204.2
Mime-Version: 1.0
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<TAB>" 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<tab> or do like I 
do and change cygdrive prefix to dev with a mount command. Then it would 
be /dev/c/win<tab>.




--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019