From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60963 invoked by alias); 3 May 2015 20:06:20 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 60955 invoked by uid 89); 3 May 2015 20:06:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 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-f175.google.com Received: from mail-qc0-f175.google.com (HELO mail-qc0-f175.google.com) (209.85.216.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 03 May 2015 20:06:18 +0000 Received: by qcyk17 with SMTP id k17so63853755qcy.1 for ; Sun, 03 May 2015 13:06:16 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.55.21.166 with SMTP id 38mr38091326qkv.88.1430683576335; Sun, 03 May 2015 13:06:16 -0700 (PDT) Received: by 10.96.114.201 with HTTP; Sun, 3 May 2015 13:06:16 -0700 (PDT) In-Reply-To: References: Date: Sun, 03 May 2015 20:10:00 -0000 Message-ID: Subject: Re: Passing double quotes to DOS From: =?UTF-8?B?0J/RkdGC0YAg0JEu?= To: cygwin Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-05/txt/msg00042.txt.bz2 cygwin.com/ml/cygwin/2002-02/msg00336.html 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