Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 9 Aug 2002 14:17:48 -0400 From: Jon LaBadie To: cygwin AT cygwin DOT com Subject: Re: cygwin and long filenames with spaces Message-ID: <20020809181748.GA26049@butch.jgcomp.com> Mail-Followup-To: Jon LaBadie , cygwin AT cygwin DOT com References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20020809102600 DOT 02e7ee98 AT pop3 DOT cris DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20020809102600.02e7ee98@pop3.cris.com> User-Agent: Mutt/1.3.28i On Fri, Aug 09, 2002 at 10:30:08AM -0700, Randall R Schulz wrote: > At 10:17 2002-08-09, Jon LaBadie wrote: > >On Fri, Aug 09, 2002 at 12:11:45PM -0400, Igor Pechtchanski wrote: > >> On Fri, 9 Aug 2002, Chris Game wrote: > >> > >> > 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, > > Not quite. It means that the number of arguments seen by the built-in "cd" > command will be identical to the number of arguments given in the top-level > (interactive or scripted) invocation of the "cd" shell function. > > Since the built-in "cd" command takes options (try "help cd"), the "$@" is > advisable. > > Usually "$@" is the right way to go, but there could be times when joining > multiple arguments into a single string might be called for. Lost my head thinking the OP wanted to automagically deal with dirnames containing spaces. -- Jon H. LaBadie jcyg AT jgcomp DOT 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/