delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/03/22/13:19:16

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: <20000322181624.15843.qmail@web121.yahoomail.com>
Date: Wed, 22 Mar 2000 10:16:24 -0800 (PST)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: odd sed behavior
To: "Michael O'Brien" <mobrien AT pixar DOT com>, Bob McGowan <rmcgowan AT veritas DOT com>,
cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

--- Michael O'Brien <mobrien AT pixar DOT com> wrote:
> Hola~
> 
> This is what I'm doing currently. The sed expression is in a Makefile, so
> the better solutution would be to leave it there as opposed to adding a two
> line file. I'm not trying to be picky, I just want to understand who's
> having problems (sed or the command prompt).
> 

As has already been stated it is the command prompt.  It doesn't understand the
single-quote ' character as a quoting character.  You could try replacing it
with a double-quote " character; but, I have no idea if it will work.  Most
users of Cygwin use it from the bash prompt so there aren't these kinds of
problems.

You could have make create the foo.sed file.

Earnie.

> MO
> 
> ----- Original Message -----
> From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
> To: Michael O'Brien <mobrien AT pixar DOT com>; Bob McGowan <rmcgowan AT veritas DOT com>;
> <cygwin AT sourceware DOT cygnus DOT com>
> Sent: Wednesday, March 22, 2000 9:51 AM
> Subject: Re: odd sed behavior
> 
> 
> > --- Michael O'Brien <mobrien AT pixar DOT com> wrote:
> > > 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.
> > >
> >
> > [edit] foo.sed
> >   s/[\\"]/\\&/g
> >   s/.*/\"&\",/
> >
> > [dos_prompt] sort -u foo.file | sed -f foo.sed
> >
> > [caveat emptor] Untested.
> >
> > Regards,
> >
> >
> > =====
> > ---
> >    Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
> >             __Cygwin: POSIX on Windows__
> > Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html>
> >            __Minimalist GNU for Windows__
> >   Mingw32 List: <http://www.egroups.com/group/mingw32/>
> >     Mingw Home: <http://www.mingw.org/>
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Talk to your friends online with Yahoo! Messenger.
> > http://im.yahoo.com
> >
> >
> 
> 

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.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