This is the mail archive of the
mailing list for the Cygwin project.
Re: 1.5.5-1: cygpath bug
- From: Larry Hall <cygwin-lh at cygwin dot com>
- To: masoud at email dot arc dot nasa dot gov, cygwin at cygwin dot com
- Date: Tue, 25 Nov 2003 19:40:44 -0500
- Subject: Re: 1.5.5-1: cygpath bug
- References: <3FC3D229.firstname.lastname@example.org>
- Reply-to: Cygwin List <cygwin at cygwin dot com>
At 05:05 PM 11/25/2003, Masoud Mansouri-Samani you wrote:
>In a script I am using cygpath for Cygwin version (1.5.5-1). It seems to have a bug:
> $ cygpath --path --windows "C:\foo"
>Which is clearly wrong.
Actually no, it's not wrong. You told cygpath that the parameter you
are passing is a path list and you told it to convert it to a Windows
path. In that case, it's going to interpret the path list as a UNIX
path and convert "C" and "\foo" to a Windows path list format. That
looks like what you got to me and would be exactly what I'd expect,
given the parameters you specified.
Try removing the --path flag. I think you'll get what you want, though I
don't know why you have to ask cygpath to convert a Windows path to a
Windows path (i.e. a no-op).
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html