delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/04/11:28:43

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
Message-ID: <3DEE2CD9.4040506@mscha.org>
Date: Wed, 04 Dec 2002 17:27:05 +0100
From: Michael Schaap <cygwin AT mscha DOT org>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1; MultiZilla v1.1.32 final) Gecko/20021130
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Bash puzzle: Spaces, environment variables and tab completion
References: <Pine DOT GSO DOT 4 DOT 44 DOT 0212041116230 DOT 29289-100000 AT slinky DOT cs DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.44.0212041116230.29289-100000@slinky.cs.nyu.edu>
X-Virus-Scanned: at mscha.org by amavisd-milter (http://amavis.org/)

On 4-12-2002 17:17, Igor Pechtchanski wrote:
> On Wed, 4 Dec 2002, Michael Schaap wrote:
> 
> 
>>On 4-12-2002 7:09, James Shaw wrote:
>>(...)
>>
>>>What I want to do is define an environment
>>>variable so I can easily cd or ls.  E.g.
>>>% PF="/cygdrive/c/Program Files"
>>>% cd $PF
>>>% ls $PF/Games
>>>% ls $PF/G<tab completion!>
>>>
>>(...)
>>
>>>So, I ask the list:
>>>        Can you define $PF so that cd $PF;
>>>        ls $PF/Games; and ls $PF/G<tab> all work???
>>
>>I'd do something like:
>>
>>% ln -s '/cygdrive/c/Program Files' /programs
>>% PF=/programs
>>
>>  - Michael
> 
> 
> $ mount 'c:\Program Files' /programs
> 
> 	Igor

Yep, that's even better.  But, I believe, in order to get TAB completion 
to work, you need to do:

$ mkdir /programs
$ mount 'c:\Program Files' /programs
$ PF=/programs

  - Michael


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