X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 11 Dec 2007 16:11:50 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: get cygpath to leave relative paths as relative? Message-ID: <20071211151150.GI6618@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <308716 DOT 36518 DOT qm AT web53808 DOT mail DOT re2 DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <308716.36518.qm@web53808.mail.re2.yahoo.com> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Dec 10 22:34, Brent wrote: > 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 > ..\ This is not always possible when converting POSIX paths to Win32 paths for a couple of reasons. One reason is that a relative path might contain symlinks, another one is that a path containing .. could cross mount points. To recognize both cases extra processing is necessary which might convert the path to an absolute form. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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/