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
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: Chris Game <chrisgame AT bigfoot DOT com>
Newsgroups: gmane.os.cygwin
Subject: Re: cygwin and long filenames with spaces
Date: Fri, 9 Aug 2002 17:06:58 +0100
Organization: .
Lines: 37
Message-ID: <MPG.17bdf8ff52c958ea989697@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> <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020809055416 DOT 01fa03a0 AT pop3 DOT cris DOT com>
NNTP-Posting-Host: m52-mp1.cvx1-b.man.dial.ntli.net
X-Trace: main.gmane.org 1028909159 26332 62.252.200.52 (9 Aug 2002 16:05:59 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Fri, 9 Aug 2002 16:05:59 +0000 (UTC)
X-Newsreader: MicroPlanet Gravity v2.30

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.

Thanks for all the help - what  a group!

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/