You are not logged in.
Pages: 1
Hi fellows,
I am trying to make a script that helps me running complex WINE programs.
As a part of it there was this
PROGDIR="/store/wine/Prog\ Name/"
cd $PROGDIR
but here is the problem that cd returns
cd $PROGDIR
bash: cd: /store/wine/Prog\: No such file or directory
If I write it manually cd /store/wine/Prog\ Name/ it works.
Also it would work like this
PARENTPROGDIR="/store/wine/"
cd $PARENTPROGDIR/Prog\ Name/
It seems that when a dir Path with a space in the name comes from a variable breaks the whole thing.
Thanks for any help.
Last edited by Xauthority (2008-12-21 11:45:48)
Offline
cd "$PROGDIR"
or
PROGDIR="\"/store/wine/Prog\ Name/\""
Offline
Thanks for your quick responce Allan !
That worked for me
PS: How can I add solved to the topic
Offline
use the edit link in the bottom right of your first post
Offline
Pages: 1