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 Reply-To: Cygwin List Message-Id: <6.0.0.22.0.20031125193119.038eaec8@127.0.0.1> X-Sender: Date: Tue, 25 Nov 2003 19:40:44 -0500 To: masoud AT email DOT arc DOT nasa DOT gov, cygwin AT cygwin DOT com From: Larry Hall Subject: Re: 1.5.5-1: cygpath bug In-Reply-To: <3FC3D229.4050507@email.arc.nasa.gov> References: <3FC3D229 DOT 4050507 AT email DOT arc DOT nasa DOT gov> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 05:05 PM 11/25/2003, Masoud Mansouri-Samani you wrote: >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. 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 Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/