delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/25/17:03:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3FC3D229.4050507@email.arc.nasa.gov>
Date: Tue, 25 Nov 2003 14:05:29 -0800
From: Masoud Mansouri-Samani <masoud AT email DOT arc DOT nasa DOT gov>
Reply-To: masoud AT email DOT arc DOT nasa DOT gov
Organization: Computer Sciences Corporation
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: 1.5.5-1: cygpath bug

Hi,

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"
   C;C:\cygwin\home\masoud\\foo

Which is clearly wrong. If one does it in two steps then it comes up 
with the right behaviour:

   $ cygpath --path --unix "C:\foo"
   /cygdrive/c/foo

   $ cygpath --path --windows /cygdrive/c/foo
   c:\foo

In my script I had to use this workaround.

Masoud


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019