On Sunday 21 March 2004 10:41 pm, David J. Weller-Fahy wrote:
> #v+
> FWS="folder with spaces"
> pwd # show current directory
> cd ${FWS} # note the lack of double quotes, this line shouldn't work
> pwd
> cd "${FWS}" #note the double quotes, this line should work
> pwd
> #v-
>
Works on the command line, no go in script.? Go figure.
> I've found sticking to the ${VARIABLE} syntax (and including double
> quotes around it when using it as an argument) when writing scripts
> saves some headaches.
me too.
> Also, if you're trying to pass the folder with
> spaces on the command line, try surrounding it with double quotes. That
> allows bash to see the entire name (including the spaces) as the first
> arguments.
still no.? hmmmm.
> I may be misunderstanding your problem completely. If so, show me the
> complete script along with an example path name, and I'll try it on my
> system to see if I can figure it out.
It's a beast, 130+ lines. Let me know. It's cool though.
thanks,
eddie
PS still working on it.....
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Mar 21 23:09:47 2004
This archive was generated by hypermail 2.1.8 : Sun Mar 21 2004 - 23:09:47 AKST