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

Re: bug in zsh-2.6-beta21



Thanks for the information.

I wanted to "evaluate a variable with echo", e.g. to replace "\n" with
a newline character... I had something like this:
a="blah\nblah\n"
b=`echo $a`

With zsh 2.6-beta21, I changed the second line:
b=`echo ${a}+`
and I use $b[1,-2] instead of $b.

With this method, the last "\n" is not stripped.
Is there a better (recommended) method to do this?

Vincent Lefevre.




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