delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/12/11/15:26:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <4.3.1.2.20011211151710.02279f08@pop.ma.ultranet.com>
X-Sender: lhall AT pop DOT ma DOT ultranet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.1
Date: Tue, 11 Dec 2001 15:23:56 -0500
To: "Lamar Seifuddin" <lamarts AT flash DOT net>, <cygwin AT cygwin DOT com>
From: "Larry Hall (RFK Partners, Inc)" <lhall AT rfk DOT com>
Subject: Re: Directory names with spaces - No such - in script
In-Reply-To: <EGEELNKPHPCMJAOJBEHHCEPKCLAA.lamarts@flash.net>
Mime-Version: 1.0

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 AT rfk DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019