* Directory names with spaces - No such - in script
@ 2001-12-11 12:26 Lamar Seifuddin
2001-12-11 12:27 ` Larry Hall (RFK Partners, Inc)
0 siblings, 1 reply; 5+ messages in thread
From: Lamar Seifuddin @ 2001-12-11 12:26 UTC (permalink / raw)
To: cygwin
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.
thank you for your help
Lamar
--
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Directory names with spaces - No such - in script
2001-12-11 12:26 Directory names with spaces - No such - in script Lamar Seifuddin
@ 2001-12-11 12:27 ` Larry Hall (RFK Partners, Inc)
2001-12-11 13:38 ` Lamar Seifuddin
0 siblings, 1 reply; 5+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-12-11 12:27 UTC (permalink / raw)
To: Lamar Seifuddin, cygwin
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Directory names with spaces - No such - in script
2001-12-11 12:27 ` Larry Hall (RFK Partners, Inc)
@ 2001-12-11 13:38 ` Lamar Seifuddin
2001-12-11 13:49 ` Larry Hall (RFK Partners, Inc)
0 siblings, 1 reply; 5+ messages in thread
From: Lamar Seifuddin @ 2001-12-11 13:38 UTC (permalink / raw)
To: Larry Hall (RFK Partners, Inc); +Cc: cygwin
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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Directory names with spaces - No such - in script
2001-12-11 13:38 ` Lamar Seifuddin
@ 2001-12-11 13:49 ` Larry Hall (RFK Partners, Inc)
2001-12-11 13:53 ` Lamar Seifuddin
0 siblings, 1 reply; 5+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2001-12-11 13:49 UTC (permalink / raw)
To: Lamar Seifuddin; +Cc: cygwin
At 06:37 PM 12/11/2001, Lamar Seifuddin wrote:
>I had already tried (removing backslashes) that! it didn't work
Yes, but did you try what I suggested (remove the backslashes and
quote the use of MUSIC_DIR in the cd command)? That worked fine for
me.
>I worked around this....
Good.
>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/
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Directory names with spaces - No such - in script
2001-12-11 13:49 ` Larry Hall (RFK Partners, Inc)
@ 2001-12-11 13:53 ` Lamar Seifuddin
0 siblings, 0 replies; 5+ messages in thread
From: Lamar Seifuddin @ 2001-12-11 13:53 UTC (permalink / raw)
To: Larry Hall (RFK Partners, Inc); +Cc: cygwin
didn't quote the MUSIC_DIR!
sorry.....
it works! thank you very much
-----Original Message-----
From: Larry Hall (RFK Partners, Inc) [mailto:lhall@rfk.com]
Sent: Tuesday, December 11, 2001 1:40 PM
To: Lamar Seifuddin
Cc: cygwin@cygwin.com
Subject: RE: Directory names with spaces - No such - in script
At 06:37 PM 12/11/2001, Lamar Seifuddin wrote:
>I had already tried (removing backslashes) that! it didn't work
Yes, but did you try what I suggested (remove the backslashes and
quote the use of MUSIC_DIR in the cd command)? That worked fine for
me.
>I worked around this....
Good.
>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/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-12-11 21:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-11 12:26 Directory names with spaces - No such - in script Lamar Seifuddin
2001-12-11 12:27 ` Larry Hall (RFK Partners, Inc)
2001-12-11 13:38 ` Lamar Seifuddin
2001-12-11 13:49 ` Larry Hall (RFK Partners, Inc)
2001-12-11 13:53 ` Lamar Seifuddin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).