Sid, The backslash character is the 'escape character'. An escape character changes how the interpreter uses the following character and in this case changes the space from being a delimiter to being a part of the two words around it. So, you only need one space, after the backslash like this... cd My\ Documents HTH Damon
-----Original Message----- From: Sid Boyce [mailto:sboyce@blueyonder.co.uk] Sent: 11 May 2004 08:31 To: suse-linux-e@suse.com Subject: Re: [SLE] shell question
James Smullins wrote:
On Monday 10 May 2004 21:56, Stephen W wrote:
How do I cd / into a windows directory that has a space in the folder name (eg Program Files)?
I have tried to run WINE and cannot open any folder with a space in the name. I have renmaed the folder to remove the space - but then the program cannot find the necessary file to run (such as dlls.
Suggestions?
I think you had to put a "\" with out the quotes in the blank space. Been a while since I have done but I think that is right.
Jim
That won't work, ~> cd cxoffice/support/dotwine/fake_windows/Program \ Files bash: cd: cxoffice/support/dotwine/fake_windows/Program: No such file or directory
It should be "Program Files", on some directories like My Documents, cd My<TAB> inserts the " <space>\<space> ", then D<TAB> supplies Documents to give My \ Documents. Regards Sid.
-- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com