From: David Huttleston Jr <dhjr@hddesign.com>
To: zsh-users@sunsite.dk
Subject: Re: What is the zsh equivalent of csh's set echo?
Date: Mon, 16 Sep 2002 17:15:46 -0500 [thread overview]
Message-ID: <20020916221546.GA27099@hddesign.com> (raw)
In-Reply-To: <1F1D28572ECAD211BC490008C75D71F5025D6388@NPRI54EXC18.NPT.NUWC.NAVY.MIL>
I've been burned by this also. :(
Is there a way to do something like:
$mycommand $myoptions $@
Where $myoptions could be:
myoptions="-a"
or
myoptions="-a -f myfile.txt"
It always chokes on interpreting "-a -f myfile.txt" as a single
parameter. Any solutions?
On Mon, Sep 16, 2002 at 05:54:18PM -0400, Hall Jeffrey S NPRI wrote:
> 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
--
David Huttleston Jr
7941 Tree Lane Suite 200
Madison WI 53717
next prev parent reply other threads:[~2002-09-16 22:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-16 21:54 Hall Jeffrey S NPRI
2002-09-16 22:06 ` Bruce Stephens
2002-09-16 22:15 ` David Huttleston Jr [this message]
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=20020916221546.GA27099@hddesign.com \
--to=dhjr@hddesign.com \
--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).