On Wed, Feb 14, 2001 at 09:00:39PM +0100, Heinrich Götzger <goetzger@xxxxxxx> wrote: > > Hi there, > > I' ve got 2 questions using zsh as shell-script interpreter. To track it > more easily, I'm splitting it in 2 different mails. > > Running zsh version 3.1.6 included in SuSE Linux 7.0 I got some trouble > using "echo -e" in a variable: > > $ echo -e "Hallo Heinrich" > Hallo Heinrich > > is ok, but: Of course it is :-) > $ ECHO="echo -e" > $ $ECHO "Hallo Heinrich" > zsh: command not found: echo -e So, zsh doesn't split $ECHO. > also with {} it brings the same: > $ ${ECHO} Hallo Heinrich > zsh: command not found: echo -e Of course, ${ECHO} is basically the same as $ECHO :-) > How can I avoid this? > > I've seen it working with ksh or bash. setopt sh_word_split :-) > Regards and thanks for the help > > Heinrich Götzger Ciao, Thomas -- Thomas Köhler Email: jean-luc@xxxxxxxxxxxxxxxxx | LCARS - Linux <>< WWW: http://jeanluc-picard.de | for Computers IRC: jeanluc | on All Real PGP public key available from Homepage! | Starships
Attachment:
pgpW85OmF8L46.pgp
Description: PGP signature