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 13:17:18 -0400
From: Jon LaBadie <jcyg@jgcomp.com>
To: cygwin@cygwin.com
Subject: Re: cygwin and long filenames with spaces
Message-ID: <20020809171718.GA25546@butch.jgcomp.com>
Mail-Followup-To: Jon LaBadie <jcyg@jgcomp.com>, cygwin@cygwin.com
References: <MPG.17bdf8ff52c958ea989697@news.gmane.org> <Pine.GSO.4.44.0208091209400.20358-100000@slinky.cs.nyu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <Pine.GSO.4.44.0208091209400.20358-100000@slinky.cs.nyu.edu>
User-Agent: Mutt/1.3.28i

On Fri, Aug 09, 2002 at 12:11:45PM -0400, Igor Pechtchanski wrote:
> On Fri, 9 Aug 2002, 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.
> >
> > 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!
> 
> I'd make that 'builtin cd "$@"' instead.  Not sure if it matters in the
> case of cd, but this would make it treat quoted parameters properly...
> Good practice, anyway. :-)

Good practice for most scripts.  But it would make the two strings
separate quoted arguments when the objective is to make them one.

-- 
Jon H. LaBadie                  jcyg@jgcomp.com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (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/

