This is the mail archive of the cygwin@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]

Directory names with spaces - No such - in script


Hello All,

I am creating some scripts, setting up the environment
 within the script.

e.g.

$ MUSIC_DIR="/cygdrive/c/Program\ Files/Audiogalaxy\ Satellite/Music/";
  export MUSIC_DIR

cd $MUSIC_DIR
=======================================================================

I get an error:

bash: cd: /cygdrive/c/Program: No such file or directory

I'm sure there is an easy solution, I just can't see it.

now if I created this without a directory (name) with spaces, it works.

thank you for your help

Lamar

--
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/


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