dar n spaces in directory name
Hey all, how goes it?
I'm using Cygwin on a windows box, kind of like putting a Ferrari engine in a Smart Car. Anyways, I'm trying to set a variable to go to this directory /cygdrive/c/Documents and Settings/Default User/.settings I can do it with the command... cd /cygdrive/c/Documents\ and\ Settings/Default\ User/.settings but I'd like to know how to set the full path to a variable and use the variable with cd. I tried using double backslashes and eval, but to no avail. I am working around with making a function with the cd command in it, but always want to know more than one way to do something. Ideas? |
Hello BeacoN :)
What's the language you are using on Cygwin and is the command parsed more than once? Best Charles |
Quote:
variable="/cygdrive/c/Documents and Settings/Default User/.settings" and cd "$variable" Cheers, Tink |
Charles,
It's just a simple BASH shell I was trying to get to a directory with. Tink, Many thanks, don't know why I didn't try that. I guess that's what I get for being forced into a Windows environment in work-my BASH gets rusty. Your suggestion worked fine-I forgot to use the double quotes in both places to reserve spaces. -Brian |
All times are GMT -5. The time now is 02:08 AM. |