How create variables to hold directory names on Windows bash?
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Mar 9 15:21:00 GMT 2005
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
More information about the Cygwin-talk
mailing list