[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exporting variables containing white space

From: Raphael Summers
Subject: Exporting variables containing white space
Date: Mon, 17 Jun 2002 19:49:35 +0100


I am trying to create a global shell variable. I type

export MYMUSIC=/mnt/windows/Documents\ and\ Settings/Administrator/My\ 
Documents/My\ Music

On attempting to cd to $MYMUSIC, it complains that there does not exist a 
directory /mnt/windows/Documents\

However, if I cd directly to this location verbatim (without the use of the 
variable), it appears to be do this successfully. 

I am wondering how to overcome this problem. What combination of single 
quotes, double quotes, and backslashes are required? 

Thanks in advance,

Raphael Summers.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]