Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Behavior change in ${...//...}



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



Messages sorted by: Reverse Date, Date, Thread, Author