delorie.com/archives/browse.cgi | search |
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 |
From: | Chris Faylor <cgf AT cygnus DOT com> |
Date: | Tue, 20 Jun 2000 10:47:03 -0400 |
To: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re: Bug of bash with sed operation ??? |
Message-ID: | <20000620104703.A8791@cygnus.com> |
Reply-To: | cygwin AT sourceware DOT cygnus DOT com |
Mail-Followup-To: | cygwin AT sourceware DOT cygnus DOT com |
References: | <394F8117 DOT EF7EEB1C AT cisco DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.2i |
In-Reply-To: | <394F8117.EF7EEB1C@cisco.com>; from zqian@cisco.com on Tue, Jun 20, 2000 at 10:35:03AM -0400 |
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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |