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

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=W1mviD
5nBdPLfvZgEQdu9irfOSrBbFpLneX1FcFxIH7LVBrF2qgOUbPNKCXUWGWLWoo1fC
IUuMkQdSzbD9x14JW2gxRZGzOWFJJJi4zXowEcNe4tk7sfi8cqhsEHIU2X8ofs7I
Hs1ExKmt0gaMOhICH1vub0diRXSvbzHLf0ybQ=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=Q74E3qnUs+jH
js2EkQsEb9SXgkk=; b=eGnWWtlpAvQlHfwUcoXC9NYuaQIuNuakNa8X70vbpO7n
Me6jTlzHYe6brpTV9tbgNcG1cALazu1o5qM5Lmp/QmIObNFk9z3RGnbk0vcleNPC
IScyM6huxJrjyuBksTFY5y0lzjKAcglGbjVjwiLVxjHBcDgsBb/MW4Zh2BeGDVc=
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=-2.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <538E7D3C.5020501@redhat.com>
Date: Tue, 03 Jun 2014 19:58:20 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: "cygpath -u" inside backticks differs
References: <20140604012839 DOT GA17012 AT praz2 DOT hsd1 DOT ma DOT comcast DOT net>
In-Reply-To: <20140604012839.GA17012@praz2.hsd1.ma.comcast.net>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes

--HOKfxSRVEE0mXLetesU3usN6880gfjlsm
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 06/03/2014 07:28 PM, Ivan Dobrianov wrote:
> It may be something very simple, but I just cannot figure what it is, nor=
 can I
> find anything on the forums.

echo 'a\b\\c\\\d\\\\e'
echo `echo 'a\b\\c\\\d\\\\e'`
echo $(echo 'a\b\\c\\\d\\\\e')

see why `` is obsolete, and you should be using $()?  Among other
reasons, \ inside `` has weird rules.

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

Your problem has nothing to do with cygpath, and everything to do with
shell quoting rules.

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--HOKfxSRVEE0mXLetesU3usN6880gfjlsm
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJTjn08AAoJEKeha0olJ0NqcQcH/RHyr35OVEjt8RiDCSFW3kJy
pAVtV4iC/ggmUcRDoDyLPcPoUhvXNN80t/C+bkcdWV/kTwymqiPBJaZ+7aGgGieF
xvXO8aQJjbvGn1Xw3y7vbds7HkVs16/nQVeqdaTLD7ujHnbwSfle1KnFxqGnDRwW
rsLT9gujnBYl9YHvDTT0irUfV/ptF66E0DkfMSaWmDDjkmJTRPQItE/+4Bixg7nR
2ms9QYEYWJMvP9ypqJZd6GU5q0m5Nx6/HAwBdKeOZ6rL2Z+DeZmQwYNfzunhSARX
KCZZ33dpMsTlfW/nUo8KDl6/qWCoR/dNOczpZUzX/56LZQGNIEPjVxUDawIH6oo=
=wSHv
-----END PGP SIGNATURE-----

--HOKfxSRVEE0mXLetesU3usN6880gfjlsm--

- Raw text -


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