On 04/11/2010 08:56 PM, Rue U wrote:
The "cd" command/program doesnt work with paths stored in a variable.
If the variable contains the backslash.
Such as:
var=/media/New\ Folder\ Here/
/media/etc...
cd $var
bash: cd: /tmp/New: No such file or directory
/tmp/etc... ? Shouldn't be /
On Sun, Apr 11, 2010 at 02:56:38PM -0400, Rue U wrote:
> The "cd" command/program doesnt work with paths stored in a variable.
It does if you quote properly.
> If the variable contains the backslash.
It should not. It should contain ONLY the actual path you want.
> var=/media/New\ Folder\ Here