Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: bug in zsh-2.6-beta21
- X-seq: zsh-users 261
- From: Vincent Lefevre <Vincent.Lefevre@xxxxxxxxxxxxxxx>
- To: hzoli@xxxxxxxxxx (Zoltan Hidvegi)
- Subject: Re: bug in zsh-2.6-beta21
- Date: Tue, 25 Jun 1996 21:43:01 +0200 (MET DST)
- Cc: vlefevre@xxxxxxxxxxx, zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <199606251911.VAA11678@xxxxxxxxxxxxxxxxx> from "Zoltan Hidvegi" at Jun 25, 96 09:11:56 pm
- Reply-to: vlefevre@xxxxxxxxxxx
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