delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
Message-ID: | <41B1A51C.422E8614@dessent.net> |
Date: | Sat, 04 Dec 2004 03:53:00 -0800 |
From: | Brian Dessent <brian AT dessent DOT net> |
Organization: | My own little world... |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: sed: altered results in bash and cmd |
References: | <1102155735 DOT 2524 DOT 6 DOT camel AT 82-40-123-11 DOT cable DOT ubr01 DOT pert DOT blueyonder DOT co DOT uk> <41B19CA6 DOT 6090203 AT schoenhaber DOT de> |
X-IsSubscribed: | yes |
Reply-To: | cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id iB4BnKlZ029667 |
Markus Schönhaber wrote: > The difference in behaviour you are seeing results from the difference > in the way cmd and bash interpret command lines and pass the resulting > arguments to the specified commands. You can read the specifics of how cmd.exe handles quoting at <http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_o.mspx>, specifically: "" If you specify /c or /k, cmd processes the remainder of string and quotation marks are preserved only if all of the following conditions are met: * You do not use /s. * You use exactly one set of quotation marks. * You do not use any special characters within the quotation marks (for example: &<>( ) @ ^ |). * You use one or more white-space characters within the quotation marks. * The string within quotation marks is the name of an executable file. If the previous conditions are not met, string is processed by examining the first character to verify whether or not it is an opening quotation mark. If the first character is an opening quotation mark, it is stripped along with the closing quotation mark. Any text following the closing quotation marks is preserved. "" Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |