Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Problems running echo -e in a variable
- X-seq: zsh-users 3617
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: <zsh-users@xxxxxxxxxxxxxx>, Heinrich Go%tzger <goetzger@xxxxxxx>
- Subject: Re: Problems running echo -e in a variable
- Date: Wed, 14 Feb 2001 12:45:29 -0800
- In-reply-to: <Pine.LNX.4.33.0102142032530.1246-100000@xxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Pine.LNX.4.33.0102142032530.1246-100000@xxxxxxxxxxxxxxxxxxxxxxxx>
On Feb 14, 9:00pm, Heinrich Go%tzger wrote:
> Subject: Problems running echo -e in a variable
> Hi there,
>
> I' ve got 2 questions using zsh as shell-script interpreter.
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).
> $ 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author