delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/16/15:24:50

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19990616192340.14656.rocketmail@web119.yahoomail.com>
Date: Wed, 16 Jun 1999 12:23:40 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: "sed" bug?
To: "D. Richard Hipp" <drh AT acm DOT org>, cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

--- "D. Richard Hipp" <drh AT acm DOT org> 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?  Try quoting the : in the
sed search string.


===
YAWIA,
Earnie Boyd <mailto:earnie_boyd AT yahoo DOT com>

Newbies, please visit
<http://www.freeyellow.com/members5/gw32/index.html>

(If you respond to the list, then please don't include me)
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.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