This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: odd sed behavior


On Tue, Mar 21, 2000 at 06:33:55PM -0800, Bob McGowan wrote:
>Chris Faylor wrote:
>> 
>> On Tue, Mar 21, 2000 at 05:14:28PM -0800, Michael O'Brien wrote:
>> >When using the 20.1 version of cygwin, I'm seeing the following
>> >strange-ness. From the command prompt:
>> >
>> >    F:\>sort  -u  a.msg  |  sed 's/[\\"]/\\&/g;s/.*/\"&\",/'
>> >    sed: -e expression #1, char 21: Unterminated `s' command
>> >    The system cannot find the path specified.
>> >
>> >    F:\>sort  -u  a.msg  |  sed 's/[\\"]/\\&/g;s/.*/&,/'
>> >
>> >Anyone have any ideas why this doesn't work?
>> 
>> I don't believe that B20.1 understands the "'" (apostrophe) quote
>> character.
>
>This is a command prompt (not bash) issue, I believe.  The Windows
>command prompt does not use the single quote (apostrophe) for quoting,
>only double quotes.  The single quotes are probably being passed in to
>sed.

Which is kinda what I was driving at.

The snapshots do understand apostrophe as the quote character, FWIW.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]