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: Thu, 8 Aug 2002 08:17:50 -0700 (Pacific Daylight Time) From: Michael A Chase Subject: Re: cygwin and long filenames with spaces To: cygwin AT cygwin DOT com Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Disposition: INLINE References: <20020808150914 DOT GE6833 AT redhat DOT com> In-Reply-To: <20020808150914.GE6833@redhat.com> On Thu, 8 Aug 2002 11:09:14 -0400 Christopher Faylor wrote: > On Thu, Aug 08, 2002 at 06:38:14AM -0700, Michael A Chase wrote: > >On Thu, 8 Aug 2002 14:12:51 +0100 Chris Game > wrote: > > > >> How can you pass long filenames which include spaces to cygwin/bash > >> commands like 'ls' under MS-Windows? Neither escaping the spaces, nor > >> enclosing the filename in single or double quotes seems to work. I > >> have to use the old DOS style short filename like /cygdrive/Docume~ > >> 1/... which can be a nuisance. > > > >Quoting the entire file specification or escaping the spaces with '\' > are > >the normal ways that spaces in file or directory names are handled. Can > >you send us the exact sequence of commands you are trying that are not > >working as you expece? > > Quoting spaces with \ doesn't work from the command line on cygwin. > Quoting > the entire specification does, e.g. > > ls -l "/cygdrive/c/Program Files" Both seem to work for me here at the bash prompt in a console window under WinXP. mchase AT MCHASE-COMPAQ /c/Documents and Settings/Michael A Chase $ ll Application\ Data/Comma\ Separated\ Values\ \(DOS\).ADR -rw-r--r-- 1 mchase None 38981 Jan 26 2002 Application Data/Comma Separated Values (DOS).ADR -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- 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/