delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/11/17:17:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: cygpath only works if the path presently exists
Date: Fri, 11 Mar 2005 17:18:47 -0500
Message-ID: <B744015F9200AA49B4E03549EED88B98A8E7D2@SCHMLVEM01.e2k.ad.ge.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Wheeler, Frederick W \(Research\)" <wheeler AT crd DOT ge DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 11 Mar 2005 22:17:06.0151 (UTC) FILETIME=[0F266770:01C52688]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j2BMHPnO018827

I'm a little surprised by this behavior from "cygpath"

% cygpath -w "//nsk120000650701/share"
\\nsk120000650701\share
% cygpath -w "//nsk120000650701/share_does_not_exist"
cygpath: error converting "//nsk120000650701/share_does_not_exist" - No such host or network path

In the first command, the path in the argument exists, in the second the path does not.  I think cygpath should convert the path even if the path/file don't currently exist.  Or perhaps there should be an option to get that behavior.

My real concern is converting this //nsk1prn02/c304_p to this \\nsk1prn02\c304_p.  This is a valid win2k printer path that I could pass to /cygdrive/c/WINNT/system32/print using the /D: option, but cygpath won't convert it.

I did a complete cygwin update moments ago.

Fred Wheeler

--
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