delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/21/21:28:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <38D83113.476DA178@veritas.com>
Date: Tue, 21 Mar 2000 18:33:55 -0800
From: Bob McGowan <rmcgowan AT veritas DOT com>
Organization: VERITAS Software
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: odd sed behavior
References: <034a01bf939b$fa1d4760$0a32a8c0 AT rainsound DOT com> <20000321203229 DOT C22262 AT cygnus DOT com>

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 AT sourceware DOT cygnus DOT 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 AT veritas DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019