This is the mail archive of the cygwin-talk@cygwin.com mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How create variables to hold directory names on Windows bash?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]