This is the mail archive of the
cygwin-talk@cygwin.com
mailing list for the cygwin project.
Re: How create variables to hold directory names on Windows bash?
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-talk at cygwin dot com
- Date: Wed, 9 Mar 2005 16:20:17 +0100
- Subject: Re: How create variables to hold directory names on Windows bash?
- References: <BAY104-F26F30A539E262166D78A27A6510@phx.gbl>
- Reply-to: Talk Amongst Yourselves <cygwin-talk at cygwin dot com>
- Reply-to: cygwin-talk at cygwin dot com
On Mar 9 07:09, neal olander wrote:
> declare pf="\Program Files"
> cd $pf # fails due to spaces in variable name
>
> QUESTION: In bash on Windows, how can I store directory names (containing
> spaces) in variables so I can use them for "cd"?
Why not just
$ ln -s /cygdrive/c/Program\ Files /progs
$ cd /progs
?
Corinna