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

Re: Problems running echo -e in a variable



Thanks for the quick answer.
it works very fine!

On Wed, 14 Feb 2001, Bart Schaefer wrote:

>If you're using zsh as an interpreter for Bourne shell scripts, then you
>should be telling it to "emulate sh", which you can do either by using
>the emulate command or by linking zsh to the name "sh" and then running
>it by that name.

>There's a lot more about this in the FAQ, which is probably in /usr/doc/zsh*
>somewhere (I don't recall how SuSE organizes its zsh RPM).
just to complete here:
SuSE have it in /usr/share/doc/packages/zsh
and it is very informative.

>> $ ECHO="echo -e"
>> $ $ECHO "Hallo Heinrich"
>> zsh: command not found: echo -e
>
>This needs "setopt SH_WORD_SPLIT" which happens for you when emulating sh.

Regards

Heinrich



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