X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 7 Jan 2010 13:08:21 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygpath and spaces in filenames when reading from a file
Message-ID: <20100107120821.GD23972@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <000801ca88a9$ec71c510$c5554f30$@com>  <20091230120129.GA32652@calimero.vinschen.de>  <20091230181849.GA17448@ednor.casa.cgf.cx>  <20091230211511.GA21679@ednor.casa.cgf.cx>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20091230211511.GA21679@ednor.casa.cgf.cx>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Dec 30 16:15, Christopher Faylor wrote:
> On Wed, Dec 30, 2009 at 01:18:50PM -0500, Christopher Faylor wrote:
> >On Wed, Dec 30, 2009 at 01:01:29PM +0100, Corinna Vinschen wrote:
> >>On Dec 29 17:11, Jon Beniston wrote:
> >>>cygpath can read a list of paths to convert from a file, when started
> >>>with -file.  However, how do you specify paths with spaces in them in
> >>>this mode?  It seems quoting the path or using \ doesn't seem to work.
> >>>E.g:
> >>
> >>No, it doesn't.  Space is used as the field separator in the file.  I
> >>assume we need an extension like allowing to specify another separator.
> >>Another one for next year...
> >
> >That's an option that I added.  I am surprised that it is space
> >delimited since I thought I intended to make it newline delimited.
> >
> >I'll take a look at it.
> 
> The option processing was changed from the time I first added it.
> AFAICT, at that point it did take one file per line.  Now it breaks on
> spaces.

Hmm, the original code only recognized spaces if options_from_file_flag
was given and the first arg started with a dash.  I thought using argz
processing would simplify things but apperantly it's overdoing it.
I've fixed it in CVS.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

