Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <3767FB78.EE70381@acm.org>
Date: Wed, 16 Jun 1999 15:31:04 -0400
From: "D. Richard Hipp" <drh@acm.org>
Organization: Hwaci
X-Mailer: Mozilla 3.0Gold (X11; U; Linux 2.0.36 i686)
MIME-Version: 1.0
To: earnie_boyd@yahoo.com
CC: cygwin@sourceware.cygnus.com
Subject: Re: "sed" bug?
References: <19990616192340.14656.rocketmail@web119.yahoomail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Earnie Boyd wrote:
> 
> > The following script works under Linux but fails on
> > Cygwin20 running under Windows95:
> >
> >   #! /bin/sh
> >   echo 'E:/a/b/c' | sed 's,^\([a-zA-Z]\):/,//\1/,'
> >
> > Under Linux the output is "//E/a/b/c".  Under Cygwin20,
> > the output is "E:/a/b/c".  That's if I run the script from
> > a file.  (The same file -- samba mounted off of the Linux
> > machine.)  If I type the command in directly at the
> > shell prompt, it works correctly on both machines.
> >
> 
> Does the command work interactively under sh vs bash?  

I don't understand.  "sh" is "bash" on both Linux and
Cygwin20, is it not?  I'm not running csh if that is
what you are asking.

> Try quoting the : in the sed search string.

Just tried it.  It didn't help.  Thanks for the suggestion,
though.

-- 
D. Richard Hipp -- drh@acm.org -- http://www.hwaci.com/drh/

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

