zsh-users
 help / color / mirror / code / Atom feed
From: Hall Jeffrey S NPRI <HallJS@Npt.NUWC.Navy.Mil>
To: "Zsh-Users (E-mail)" <zsh-users@sunsite.dk>
Cc: Bosworth Barry T NPRI <BosworthBT@Npt.NUWC.Navy.Mil>,
	Goldman Warren A NPRI <GoldmanWA@Npt.NUWC.Navy.Mil>
Subject: RE: What is the zsh equivalent of csh's set echo?
Date: Mon, 16 Sep 2002 17:54:18 -0400	[thread overview]
Message-ID: <1F1D28572ECAD211BC490008C75D71F5025D6388@NPRI54EXC18.NPT.NUWC.NAVY.MIL> (raw)

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.


             reply	other threads:[~2002-09-16 21:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-16 21:54 Hall Jeffrey S NPRI [this message]
2002-09-16 22:06 ` Bruce Stephens
2002-09-16 22:15 ` David Huttleston Jr
2002-09-16 22:23   ` David Huttleston Jr
     [not found] <20020916194352.QNEN494619.fep02-mail.bloor.is.net.cable.rogers.com@sunsite.dk>
2002-09-16 20:31 ` Paul Ackersviller
  -- strict thread matches above, loose matches on Subject: below --
2002-09-16 19:43 Hall Jeffrey S NPRI

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1F1D28572ECAD211BC490008C75D71F5025D6388@NPRI54EXC18.NPT.NUWC.NAVY.MIL \
    --to=halljs@npt.nuwc.navy.mil \
    --cc=BosworthBT@Npt.NUWC.Navy.Mil \
    --cc=GoldmanWA@Npt.NUWC.Navy.Mil \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).