delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/06/03/21:29:02

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:mime-version
:content-type; q=dns; s=default; b=iLSCM+eAwaakKEl+59zq2PK/ArBfL
Y0pnC7WiAmJhf+uNlXN6oiYcLJ4vWuT0cnndo/KbD5BqrEGodCSG1fziCZaNcOT5
hOqO8TIyffl23pY9Olks6wOUdfB4Z1u9OU6n89JEVRQJpmlW+UzQqhk9iYWln6r/
zqp90UUIJXa/Z0=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:mime-version
:content-type; s=default; bh=Wmy6OAmWPN6Z2haLXFSJq8Fo4qs=; b=OYh
2L/SIbURuvTLR7euIdSpODSeJQgbnnsxjFYdAbJtkUnAk7IV79Lv+h9T2X8UVGeW
fZQz8wM1SXWHXXFdPS6XzVkYOJkLlblRjX1A2OfmxMx5yIwUyHuEw26NEZLAFJo4
uLH/aDJlkkMkubwB4DDGF+aYOJOAVoi9Xd7CiuEc=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=ham version=3.3.2
X-HELO: smtp1.phpwebhosting.com
Date: Tue, 3 Jun 2014 21:28:39 -0400
From: Ivan Dobrianov <cygwin-130603-b40 AT dobrianov DOT net>
To: cygwin AT cygwin DOT com
Subject: "cygpath -u" inside backticks differs
Message-ID: <20140604012839.GA17012@praz2.hsd1.ma.comcast.net>
MIME-Version: 1.0
User-Agent: Mutt/1.5.21 (2010-09-15)

It may be something very simple, but I just cannot figure what it is, nor can I
find anything on the forums.

Here - see the different results:

/ > echo `cygpath.exe -u '\\DAEMON1\anrdaemon\.profile'`
/c/DAEMON1/anrdaemon/.profile

/ > cygpath.exe -u '\\DAEMON1\anrdaemon\.profile'
//DAEMON1/anrdaemon/.profile

So cygpath in backticks slaps a drive at the front, while otherwise it does
... well, what I expect.


Does anyone know why? Or know a thread where this is explained?

Many thanks!
Ivan

PS: I am running a fairly recent version of cygwin 1.7.27 ... and I just checked
it in 1.7.29

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

- Raw text -


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