View Single Post
Old Mar 24th, 2008, 8:22 PM   #9
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 Seif View Post
a shot in the dark but change jessehks:

$ HDA1="/mnt/hda1/Documents and Settings"
$ cd $HDA1

to:

$ HDA1="/mnt/hda1/Documents and Settings"
$ cd "$HDA1"

?

Has been a while since i've written a shell script
Oh that's it It worked! Thanks a lot. So the key was to use double quotes while calling the variable as well as while defining the variable, eh?!

Thanks you all for your interest
I will be right back
__________________
ESTRAGON: We've lost our rights?
VLADIMIR: (distinctly) We got rid of them.
estergon is offline   Reply With Quote