View Single Post
Old Mar 24th, 2008, 7:13 PM   #5
estergon
Newbie
 
estergon's Avatar
 
Join Date: Mar 2008
Posts: 8
Rep Power: 0 estergon is on a distinguished road
Re: Spaces in path names

Quote:
Originally Posted by Sane View Post
I'll take a whack at guessing:

HDA1="\"/mnt/hda1/Documents and Settings\""
Or:

HDA1="/mnt/hda1/Documents\\ and\\ Settings"
Sorry to say no
$ HDA1="\"/mnt/hda1/Documents and Settings\""
$ echo $HDA1
"/mnt/hda1/Documents and Settings"
$ cd $HDA1
bash: cd: "/mnt/hda1/Documents: No such file or directory

$ HDA1="/mnt/hda1/Documents\\ and\\ Settings"
$ echo $HDA1
/mnt/hda1/Documents\ and\ Settings
$ cd $HDA1
bash: cd: /mnt/hda1/Documents\: No such file or directory

Keep it coming please.. I am sure we will work this out by the sun rise..
__________________
ESTRAGON: We've lost our rights?
VLADIMIR: (distinctly) We got rid of them.
estergon is offline   Reply With Quote