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
Message-ID: <003901bf9424$9b067b50$0a32a8c0@rainsound.com>
Reply-To: "Michael O'Brien" <mobrien@pixar.com>
From: "Michael O'Brien" <mobrien@pixar.com>
To: "Bob McGowan" <rmcgowan@veritas.com>, <cygwin@sourceware.cygnus.com>
References: <034a01bf939b$fa1d4760$0a32a8c0@rainsound.com> <20000321203229.C22262@cygnus.com> <38D83113.476DA178@veritas.com>
Subject: Re: odd sed behavior
Date: Wed, 22 Mar 2000 09:32:32 -0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300

Hola~

The command below does work using bash. However, I'm not using bash, but the
command prompt. I agree with the diagnosis that the problem lies in the ". I
really need a work around, tho.

MO

----- Original Message -----
From: Bob McGowan <rmcgowan@veritas.com>
To: <cygwin@sourceware.cygnus.com>
Sent: Tuesday, March 21, 2000 6:33 PM
Subject: Re: odd sed behavior


> 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.
> >
> > cgf
> >
> > --
> > Want to unsubscribe from this list?
> > Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
> 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.
>
> I'd suggest to Michael that you try first starting the bash shell, then
> run the sed command and see what happens.
>
> --
> Bob McGowan
> Staff Software Quality Engineer
> VERITAS Software
> rmcgowan@veritas.com
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
>
>


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

