Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Lamar Seifuddin" <lamarts@flash.net>
To: "Larry Hall \(RFK Partners, Inc\)" <lhall@rfk.com>
Cc: <cygwin@cygwin.com>
Subject: RE: Directory names with spaces - No such -  in script
Date: Tue, 11 Dec 2001 15:37:25 -0800
Message-ID: <EGEELNKPHPCMJAOJBEHHMEPNCLAA.lamarts@flash.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-Reply-To: <4.3.1.2.20011211151710.02279f08@pop.ma.ultranet.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I had already tried (removing backslashes) that!   it didn't work

I worked around this....

thanks anyway.



-----Original Message-----
From: Larry Hall (RFK Partners, Inc) [mailto:lhall@rfk.com]
Sent: Tuesday, December 11, 2001 12:24 PM
To: Lamar Seifuddin; cygwin@cygwin.com
Subject: Re: Directory names with spaces - No such - in script


At 05:14 PM 12/11/2001, Lamar Seifuddin wrote:
>Hello All,
>
>I am creating some scripts, setting up the environment
>  within the script.
>
>e.g.
>
>$ MUSIC_DIR="/cygdrive/c/Program\ Files/Audiogalaxy\ Satellite/Music/";
>   export MUSIC_DIR
>
>cd $MUSIC_DIR
>=======================================================================
>
>I get an error:
>
>bash: cd: /cygdrive/c/Program: No such file or directory
>
>I'm sure there is an easy solution, I just can't see it.
>
>now if I created this without a directory (name) with spaces, it works.



That's one easy way.  You can also remove the backslashes and simply 
quote $MUSIC_DIR in your "cd" command.

This is really a bash/bourne shell question.  You should consult the 
documentation for these shells to get a better understanding of what's
going on here and how to deal with it.  Unless there is a problem 
specific to Cygwin in this area, it's rather off-topic here.  Just FYI.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

