From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id GAA01597 for ; Tue, 24 Sep 1996 06:13:09 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id QAA15611; Mon, 23 Sep 1996 16:02:26 -0400 (EDT) Resent-Date: Mon, 23 Sep 1996 16:02:26 -0400 (EDT) From: "Bart Schaefer" Message-Id: <960923130459.ZM3814@candle.brasslantern.com> Date: Mon, 23 Sep 1996 13:04:59 -0700 In-Reply-To: Peter Stephenson "Re: minor bug with ${}" (Sep 23, 10:43am) References: <199609230843.KAA04141@hydra.ifh.de> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.820 20aug96) To: Peter Stephenson , zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: minor bug with ${} MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"u8anU3.0.np3.HpkHo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2158 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Sep 23, 10:43am, Peter Stephenson wrote: } Subject: Re: minor bug with ${} } } A better syntax would have been something like `${{a:s/b/cd/}#c}' to } do the substitution above, with an extra $ doing what you were } expecting. (It's a bit late now, since it would wreck all of Bart's } scripts, yet again :-(.) Chuckle. Actually, I don't use "nested" substitution very much. It's only in the last few months that I've started replacing some constructs that required external "sed"s etc. with some of this stuff. I'm just as opposed to breaking other people's scripts, though. :-} -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern New male in /home/schaefer: >N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"