delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/08/25/18:31:46

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>,
<http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Wed, 25 Aug 1999 18:31:16 -0400
From: Chris Faylor <cgf AT cygnus DOT com>
To: Rob Tulloh <tulloh AT dev DOT tivoli DOT com>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: B20.1 sh and bash command line parsing question
Message-ID: <19990825183116.A12697@cygnus.com>
Reply-To: cygwin AT sourceware DOT cygnus DOT com
Mail-Followup-To: Rob Tulloh <tulloh AT dev DOT tivoli DOT com>,
cygwin AT sourceware DOT cygnus DOT com
References: <37C3CDD2 DOT F8BD4C58 AT dev DOT tivoli DOT com> <19990825173114 DOT A12374 AT cygnus DOT com> <37C4687B DOT 5F7BB0E4 AT dev DOT tivoli DOT com>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.6i
In-Reply-To: <37C4687B.5F7BB0E4@dev.tivoli.com>; from Rob Tulloh on Thu, Aug 26, 1999 at 12:04:43AM +0200

I'm telling you how this is implemented now.  I thought that was what you
were asking for.

If I was to change everything immediately to properly quote things with
a backslash, would that solve your problem?  I don't think so.  There
will still be a large number of people with old code.

A quick test seems to indicate that Microsoft allows both \" and "".

Another quick test seems to indicate that, yes, the source code for
cygwin is still available, so if "we" want to fix this then "we"
can submit a patch and "we" will add it to the source code for
a future release.

As to whether we want to ifdef code between cygwin and UNIX, I'd
suggest that the best way to ensure compatibility is to use Cygwin
tools.  The shell handles quoting correctly.

cgf

On Thu, Aug 26, 1999 at 12:04:43AM +0200, Rob Tulloh wrote:
>Ciao a tutti!
>
>Chris Faylor wrote:
>> 
>> I don't know if this helps, but cygwin uses the doubled quote character
>> '""' to indicate a single quote.  It doesn't recognize the backslash
>> syntax.
>> 
>> I actually had everything coded to understand the backslash when it was
>> brought to my attention that a normal MS-DOS application relies on
>> doubling of quotes to quote a quote.  I know that this is not consistent
>
>Why are you following MS-DOS for a WIN32-based implementation? The rules
>(according to the Microsoft docs) are clearly stated as this:
>[snip]

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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