This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Bug of bash with sed operation ???
- To: cygwin at sourceware dot cygnus dot com
- Subject: Re: Bug of bash with sed operation ???
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Tue, 20 Jun 2000 10:47:03 -0400
- References: <394F8117.EF7EEB1C@cisco.com>
- Reply-To: cygwin at sourceware dot cygnus dot com
On Tue, Jun 20, 2000 at 10:35:03AM -0400, Zhiguang Qian wrote:
>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.
I did. Have you tried it on UNIX? Same effect. It's not a bug.
Your \\ is being eaten inside the ` ... ` command. You probably need
to double up on these when you are using them inside of backquotes (or
" style quotes for that matter).
cgf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com