delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/03/18/18:01:10

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=4.6 required=5.0 tests=AWL,BAYES_50,BOTNET,RCVD_IN_DNSWL_NONE,TW_YW
X-Spam-Check-By: sourceware.org
Message-id: <4D83D60C.3080702@cygwin.com>
Date: Fri, 18 Mar 2011 18:00:44 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin (1.7.8 and other versions) problems with globbing when invoked from DOS/Windows with nested quotes
References: <AANLkTim=3gM0sS6RCP6rCjKe6W2hY200wBaaGZ=g8gdu AT mail DOT gmail DOT com>
In-reply-to: <AANLkTim=3gM0sS6RCP6rCjKe6W2hY200wBaaGZ=g8gdu@mail.gmail.com>
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

On 3/18/2011 2:39 PM, Alex Khripin wrote:
> Hi,
>
> Short summary: getting nested quotes in an argument through to a
> Cygwin process from DOS is problematic, and there does not seem to be
> any detailed spec for how to escape quotes correctly. Backslash
> characters seem to be spuriously generated.

If you're using a native Windows 'make' with a Cywgin shell, you're better
off making your tools consistent.  Quoting mechanisms for Windows do not
align with those used by Cygwin/Linux/Unix, so things are already problematic.
Passing in a DOS path to a Cygwin shell and expecting the output to be
properly quoted for a Windows version of 'make' is just asking for trouble.
So I'd recommend staying on one side of the fence or the other if you want
to minimize headaches.

-- 
Larry

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
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