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
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 9 Aug 2002 12:10:40 -0400
From: Christopher Faylor <cgf@redhat.com>
To: cygwin@cygwin.com
Subject: Re: cygwin and long filenames with spaces
Message-ID: <20020809161040.GC14475@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <MPG.17bc7eb241ea128c989695@news.gmane.org> <Mahogany-0.64.2-2268-20020808-063814.00@MCHASE-COMPAQ> <20020808150914.GE6833@redhat.com> <Mahogany-0.64.2-2268-20020808-081750.00@MCHASE-COMPAQ> <20020808153224.GC8388@redhat.com> <5.1.0.14.2.20020809055416.01fa03a0@pop3.cris.com> <MPG.17bdf8ff52c958ea989697@news.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <MPG.17bdf8ff52c958ea989697@news.gmane.org>
User-Agent: Mutt/1.3.23.1i

On Fri, Aug 09, 2002 at 05:06:58PM +0100, Chris Game wrote:
>In an earlier post, Randall R Schulz said...
>
>> 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.
> 
>Ah! That vaguely rings a bell.
><goes away and tries it>
>Yes, long ago in the days of beta 19.whatever I must have set cd up 
>as a function including a 'pwd' line. The response is:
>
>cd is a function
>cd ()
>{
>    builtin cd $1;
>    pwd
>}
>cd is a shell builtin
>
>So - I need to modify the 'builtin ...' line.
>
><tries a couple of possibilities>
>
>Well, 'builtin cd "$*";' works! No  idea if that's the correct 
>modification though.

It's *a* modification, at least.  That would actually allow you to
do something like:

cd /cygdrive/c/Program Files

without the quotes.

cgf

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

