From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7987 invoked from network); 16 Sep 2002 21:55:35 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Sep 2002 21:55:35 -0000 Received: (qmail 12462 invoked by alias); 16 Sep 2002 21:54:49 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5354 Received: (qmail 12428 invoked from network); 16 Sep 2002 21:54:32 -0000 Date: Mon, 16 Sep 2002 17:54:18 -0400 From: Hall Jeffrey S NPRI Subject: RE: What is the zsh equivalent of csh's set echo? To: "Zsh-Users (E-mail)" Cc: Bosworth Barry T NPRI , Goldman Warren A NPRI Message-id: <1F1D28572ECAD211BC490008C75D71F5025D6388@NPRI54EXC18.NPT.NUWC.NAVY.MIL> MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-type: text/plain; charset=iso-8859-1 Importance: high X-Priority: 1 Actually, I figured out my problem. I got burned by the zsh not splitting parameter substitutions into multiple words. I had a flag/value pair stored in a variable, like FOO='-flag value' and was trying to run a program named proto89 by doing something like proto89 $FOO. WRONG! This does NOT work in the zsh. The zsh does not give command proto89 2 arguments but only 1! That is, zsh does NOT give the command proto89 the 2 arguments "-flag" and "value" but only 1 argument "-flag value". proto89 does not report this problem but simply ignores it, hence my problem. Note that echo proto89 $FOO does not reveal the problem because the user will clearly see the words "-flag" and "value" separated but does not know that zsh is giving them to the command as 1 argument. This "feature" of zsh should be better known. I've used the zsh for like 8 years and never stumbled (staggered) across this problem before. -----Original Message----- From: Hall Jeffrey S NPRI [mailto:HallJS@Npt.NUWC.Navy.Mil] Sent: Monday, September 16, 2002 3:44 PM To: zsh-users@sunsite.dk Subject: What is the zsh equivalent of csh's set echo? Dear zsh users, I am trying to debug a zsh script. I want to know what zsh command makes zsh behave like csh does with the set echo command: write out every command after the shell has fully expanded it, right before it is executed. I read the zshall man page but did not find what I was looking for. Thanks.