This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: sed: altered results in bash and cmd
On Sat, Dec 04, 2004 at 03:04:52PM +0100, Jan Schormann wrote:
>> C:\>E:\cygwin\bin\echo.exe '/^ .*$/d'
>> / .*$/d
>
>>I'm not really sure but I think cmd doesn't treat single quotes as
>>quoting characters - at least not in the way bash does.
>
>That's true. In addition, the '^' in cmd is an escape character, like
>the backslash in sh. Search for "string literals" in the XP help and
>support center.
cmd may not treat single quotes as quoting characters but cygwin does
when a command is started from the windows command prompt.
As has been noted, the ^ is being eaten by cmd before cygwin ever sees
it.
cgf
--
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/