From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13681 invoked from network); 14 Feb 2001 20:45:58 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 14 Feb 2001 20:45:58 -0000 Received: (qmail 10329 invoked by alias); 14 Feb 2001 20:45:42 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 3617 Received: (qmail 10318 invoked from network); 14 Feb 2001 20:45:39 -0000 From: "Bart Schaefer" Message-Id: <010214124529.ZM1493@candle.brasslantern.com> Date: Wed, 14 Feb 2001 12:45:29 -0800 In-Reply-To: Comments: In reply to Heinrich Go%tzger "Problems running echo -e in a variable" (Feb 14, 9:00pm) References: X-Mailer: Z-Mail Lite (5.0.0 30July97) To: , Heinrich Go%tzger Subject: Re: Problems running echo -e in a variable MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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.