delorie.com/archives/browse.cgi | search |
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:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; q=dns; s=default; b=wA | |
fgbJCc99/IKL4WzvT9lxckMg4BzgGJWWW6jFmM6Lidm+yX5Cg1ns1c8ueqANP9OS | |
gEBWRhNoELScbHfeFB0e2HOxZyE/8Pgugspv+2eqCweHhrizkSk8WG4hnpVr78CS | |
+slQYY6jS0U2z5nFiqI68gMqqRKcqPpLfQnKwlufM= | |
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:mime-version:in-reply-to:references:date | |
:message-id:subject:from:to:content-type; s=default; bh=X1LpLZE3 | |
sQ+4C9A2zDha6h1TXJ4=; b=moKN+LxxS742qqamnq1ddazu+8D4OCTLQgw/PDBB | |
RWyYPFu3t56TOyikbuTD2dtQe9YeeOUo+cm4R6+Me4qzLdyC45cCOqew3rbIZ6SB | |
TBSGa5ZOzoUE6+m7KW+oDa9MZRP/UQlN5tkuOiLkaFv2hDfe80yNDgQRQ8jum6/a | |
AYo= | |
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=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-qc0-f172.google.com |
MIME-Version: | 1.0 |
X-Received: | by 10.55.48.16 with SMTP id w16mr38793993qkw.13.1430683824637; Sun, 03 May 2015 13:10:24 -0700 (PDT) |
In-Reply-To: | <CA+Ni7jMCym9_txVuvoFCeV_3t8NV7CD68unR8WjKP9f6szx4hw@mail.gmail.com> |
References: | <CA+Ni7jNBd0WZu37OMiPEyvxwkgvYnDfonKoLjpuvNrZ95A9Rbw AT mail DOT gmail DOT com> <CA+Ni7jMAtGL=xV2GoM5CCo282OdU1aDed++1kGX_UrrT=FbzFA AT mail DOT gmail DOT com> <CA+Ni7jMCym9_txVuvoFCeV_3t8NV7CD68unR8WjKP9f6szx4hw AT mail DOT gmail DOT com> |
Date: | Mon, 4 May 2015 00:10:24 +0400 |
Message-ID: | <CA+Ni7jNoaai5HjDkniV24rHukKgJKT0vYWkHneFqQT2DF-hw9g@mail.gmail.com> |
Subject: | Re: Passing double quotes to DOS |
From: | =?UTF-8?B?0J/RkdGC0YAg0JEu?= <satnatantas AT gmail DOT com> |
To: | cygwin <cygwin AT cygwin DOT com> |
/cygwin.com/ml/cygwin/2002-02/msg00336.html (Gmail keeps setting my message type to HTML. Cannot get it to be plaintext if there is a link inside the message) There was a statement saying that cygwin does everything to preserve double quotes. It does not. I was recently doing some symbolic links with "cmd /c mklink "path" "filename" " recently and it was fine until I had a file with ampersand. If I type cmd /c mklink "path" "filename" cmd.exe is called without doubleqoutes (I use ProcExp to see cmd line). If I type same thing in "Run" dialog of TaskManager, doublequotes are passed as intended. If I type cmd /c mklink \"path\" \"filename\" reverse slash spills to cmd line. If I type cmd /c mklink "\"path\"" "\"filename\"" reverse slash and all doubleqoutes spill to cmd line. I really do not get it. How do I pass doubleqoutes to CMD? Problem is not related to mklink or any internals of CMD and even bash - Cygwin does not pass doubleqoutes instead. Example: echo "\"bbb\"" cmd /c echo "\"bbb\"" There must be an error somewhere on the CYGWIN/Windows boundary. Can I somehow whitelist "cmd.exe" so it does not get special treatment? CYGWIN_NT-6.1 USER 1.7.33-2(0.280/5/3) 2014-11-13 15:47 x86_64 Cygwin -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |