From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16267 invoked from network); 14 Feb 2001 23:05:39 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Feb 2001 23:05:39 -0000 Received: (qmail 2359 invoked by alias); 14 Feb 2001 23:05:17 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3621 Received: (qmail 2333 invoked from network); 14 Feb 2001 23:05:14 -0000 Date: Wed, 14 Feb 2001 22:59:09 +0100 From: Thomas =?iso-8859-1?Q?K=F6hler?= To: zsh-users@sunsite.auc.dk Subject: Re: Problems running echo -e in a variable Message-ID: <20010214225909.B2201@picard.franken.de> Mail-Followup-To: Thomas =?iso-8859-1?Q?K=F6hler?= , zsh-users@sunsite.auc.dk References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H1spWtNR+x+ondvy" Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from goetzger@gmx.net on Wed, Feb 14, 2001 at 09:00:39PM +0100 X-Operating-System: Linux picard 2.2.17 X-Editor: VIM - Vi IMproved 6.0v ALPHA http://www.vim.org/ X-IRC: tirc; Nick: jeanluc X-URL: http://jeanluc-picard.de/ --H1spWtNR+x+ondvy Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 14, 2001 at 09:00:39PM +0100, Heinrich G=F6tzger wrote: >=20 > Hi there, >=20 > I' ve got 2 questions using zsh as shell-script interpreter. To track it > more easily, I'm splitting it in 2 different mails. >=20 > Running zsh version 3.1.6 included in SuSE Linux 7.0 I got some trouble > using "echo -e" in a variable: >=20 > $ echo -e "Hallo Heinrich" > Hallo Heinrich >=20 > is ok, but: Of course it is :-) > $ ECHO=3D"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? >=20 > I've seen it working with ksh or bash. setopt sh_word_split :-) > Regards and thanks for the help >=20 > Heinrich G=F6tzger Ciao, Thomas --=20 Thomas K=F6hler Email: jean-luc@picard.franken.de | LCARS - Linux <>< WWW: http://jeanluc-picard.de | for Computers IRC: jeanluc | on All Real PGP public key available from Homepage! | Starships --H1spWtNR+x+ondvy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE6iv+tTEYXWMJlHuYRAmoDAJwI39tplglEHLUYf1ZAvfROsqmRdwCgpD6J jRscUTAMkcWuIhDNSySmth0= =IQxU -----END PGP SIGNATURE----- --H1spWtNR+x+ondvy--