delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/20/12:22:34

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
Subject: Re: Bug of bash with sed operation ???
To: zqian AT cisco DOT com
Cc: cygwin AT sourceware DOT cygnus DOT com
From: "Jorg Schaible" <jorg DOT schaible AT db DOT com>
Date: Tue, 20 Jun 2000 17:21:14 +0000
Message-ID: <OFA846ABAB.1A5B85E7-ON00256904.005F44A8@srv.uk.deuba.com>
X-MIMETrack: Serialize by Router on sdbo1003/DMGUK/DeuBaInt/DeuBa(Release 5.0.3 (Intl)|21
March 2000) at 20/06/2000 05:21:17 PM
MIME-Version: 1.0



Try: out=`echo $MY | sed -e 's#\\\\#\\/#g'`


---------------------------------------- Message History ----------------------------------------


From: zqian AT cisco DOT com on 20/06/2000 14:35

To:   cygwin AT sourceware DOT cygnus DOT com
cc:
Subject:  Bug of bash with sed operation ???



Hi,

Here is the sample.

>>export MY=\aaa\bbb.c
>>echo $MY | sed -e 's#\\#\/#g'
>> /aaa/bbb.c
>>out=`echo $MY | sed -e 's#\\#\/#g'`
>> sed: -e expression #1, char 8: Unterminated `s' command

Try it.

Thanks.

Zhiguang Qian



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus 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