From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8248 invoked from network); 4 Sep 2003 20:08:39 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Sep 2003 20:08:39 -0000 Received: (qmail 5565 invoked by alias); 4 Sep 2003 20:08:22 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6524 Received: (qmail 5546 invoked from network); 4 Sep 2003 20:08:22 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 4 Sep 2003 20:08:22 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [66.93.131.57] by sunsite.dk (MessageWall 1.0.8) with SMTP; 4 Sep 2003 20:8:21 -0000 Received: from lorien.emufarm.org (localhost [127.0.0.1]) by lorien.emufarm.org (8.12.7/8.12.7) with ESMTP id h84K8KkI012233 for ; Thu, 4 Sep 2003 13:08:20 -0700 Received: (from duvall@localhost) by lorien.emufarm.org (8.12.7/8.12.7/Submit) id h84K8J1a012232 for zsh-users@sunsite.dk; Thu, 4 Sep 2003 13:08:19 -0700 Date: Thu, 4 Sep 2003 13:08:19 -0700 From: Danek Duvall To: zsh-users@sunsite.dk Subject: Re: Behavior change in ${...//...} Message-ID: <20030904200819.GC32265@lorien.emufarm.org> Mail-Followup-To: Danek Duvall , zsh-users@sunsite.dk References: <20030903202953.GB19734@lorien.emufarm.org> <6728.1062667692@csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6728.1062667692@csr.com> User-Agent: Mutt/1.5.4i On Thu, Sep 04, 2003 at 10:28:12AM +0100, Peter Stephenson wrote: > See the README file for 4.0.7. Ah, thanks. I saw the change in the man page, but was only looking at the 4.1.1 sources, and didn't see any reference to the change. > Note also the following workaround which is valid in all versions of the > shell that support this syntax: > % slash=/ > % foo=word/bird > % print ${foo/$slash/-} "${foo/$slash/+}" As it turned out (not too long after I sent my query), this was easier for me to do than I had expected, and so I no longer needed some test for which behavior to use. Thanks, Danek