Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: Chris Faylor <cgf@cygnus.com>
Date: Tue, 21 Mar 2000 21:33:11 -0500
To: cygwin@sourceware.cygnus.com
Subject: Re: odd sed behavior
Message-ID: <20000321213310.A22560@cygnus.com>
Reply-To: cygwin@sourceware.cygnus.com
Mail-Followup-To: cgf@cygnus.com, cygwin@sourceware.cygnus.com
References: <034a01bf939b$fa1d4760$0a32a8c0@rainsound.com> <20000321203229.C22262@cygnus.com> <38D83113.476DA178@veritas.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.1.8i
In-Reply-To: <38D83113.476DA178@veritas.com>; from rmcgowan@veritas.com on Tue, Mar 21, 2000 at 06:33:55PM -0800

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

