| delorie.com/archives/browse.cgi | search |
| 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 |
| X-Authentication-Warning: | slinky.cs.nyu.edu: pechtcha owned process doing -bs |
| Date: | Wed, 4 Dec 2002 11:17:30 -0500 (EST) |
| From: | Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> |
| Reply-To: | cygwin AT cygwin DOT com |
| To: | Michael Schaap <cygwin AT mscha DOT org> |
| cc: | cygwin AT cygwin DOT com |
| Subject: | Re: Bash puzzle: Spaces, environment variables and tab completion |
| In-Reply-To: | <3DEE1305.3090507@mscha.org> |
| Message-ID: | <Pine.GSO.4.44.0212041116230.29289-100000@slinky.cs.nyu.edu> |
| Importance: | Normal |
| MIME-Version: | 1.0 |
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 AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |