delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/09/08:56:26

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
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.2.20020809055416.01fa03a0@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Fri, 09 Aug 2002 05:57:39 -0700
To: Chris Game <chrisgame AT bigfoot DOT com>, cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: cygwin and long filenames with spaces
In-Reply-To: <MPG.17bd94dcc77c85aa989696@news.gmane.org>
References: <MPG DOT 17bc7eb241ea128c989695 AT news DOT gmane DOT org>
<Mahogany-0 DOT 64 DOT 2-2268-20020808-063814 DOT 00 AT MCHASE-COMPAQ>
<20020808150914 DOT GE6833 AT redhat DOT com>
<Mahogany-0 DOT 64 DOT 2-2268-20020808-081750 DOT 00 AT MCHASE-COMPAQ>
<20020808153224 DOT GC8388 AT redhat DOT com>
Mime-Version: 1.0

Chris,

It sounds like you have an alias or shell procedure standing in for the 
built-in "cd" command.

What output does this command produce:

         type -a cd

If it's not the built-in (i.e., the preceding command produces something 
other than just "cd is a shell builtin"), then make sure that alias or 
procedure is defined in such a way to tolerate spaces and meta-characters 
in its argument.

Randall Schulz
Mountain View, CA USA


At 01:59 2002-08-09, Chris Game wrote:
>In an earlier post, Christopher Faylor said...
>
> > You're doing it from bash.  I assumed that the person was having
> > problems from the command shell since they said "MS-Windows".  But,
> > on reflection, there is no guarantee that's the case here.  Not enough
> > info.
>
>I think I said 'bash' in the OP.
>
> > When there is a UNIX shell involved the quoting rules follow whatever
> > the UNIX shell uses (as you know).  When there is no UNIX shell involved
> > then cygwin itself tries to do something halfway intelligent with the
> > arguments.
> >
> > Anyway, with luck, one of our responses should have answered the
> > question.
>
>Ha! (Sorry!)
>Well, 'ls "/cygdrive/c/Program Files" ' works but 'cd
>"/cygdrive/c/Program Files" '  doesn't! The message comes back:
>bash: cd: /cygdrive/c/Program: No such file or directory
>
>
>C.


--
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