delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
X-YMail-OSG: | QktqiEUVM1lmfFtUTxK4GDG31PVm4iotlux8xZGYSoZschbNsx_GvudZZJEz0b4lnwx3Bjo9EMjWE2WWdspmIjHah_BTYQr_Mx3gSlSsbBtON4oPIiYk49COoZpXUHHBMZhdJsEF0_ZXEb8- |
X-Mailer: | YahooMailRC/818.31 YahooMailWebService/0.7.158.1 |
Date: | Mon, 10 Dec 2007 22:34:55 -0800 (PST) |
From: | Brent <yhbrent AT yahoo DOT com> |
Subject: | get cygpath to leave relative paths as relative? |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
Message-ID: | <308716.36518.qm@web53808.mail.re2.yahoo.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
If I execute mypath=`cygpath -w ../` echo $mypath I get d:\unix\nextVersion\script OK, d:\unix\nextVersion\script is the correct windows version of the path, but it is in absolute form. I would prefer it if cygpath left it in relative form, i.e. echo $mypath should output ..\ Executing cygpath --help indicates that the only related option is -a, but that forces conversion to absolute paths, which is the opposite of what I want. It seems, unfortunately, as if cygpath has -a on by default and has no way to turn it off! Is this a known bug or implementation quirk in cygpath, or did I overlook something? (Web searching on cygpath and "relative path" generated a ton of hits, but none out of the first 100 that I looked thru seemed related...) ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |