This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Bash puzzle: Spaces, environment variables and tab completion
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Michael Schaap <cygwin at mscha dot org>
- Cc: cygwin at cygwin dot com
- Date: Wed, 4 Dec 2002 11:17:30 -0500 (EST)
- Subject: Re: Bash puzzle: Spaces, environment variables and tab completion
- Reply-to: cygwin at cygwin dot com
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
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51
--
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/