This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug of bash with sed operation ???





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


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


From: zqian@cisco.com on 20/06/2000 14:35

To:   cygwin@sourceware.cygnus.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@sourceware.cygnus.com





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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]