Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: What is the zsh equivalent of csh's set echo?
- X-seq: zsh-users 5356
- From: David Huttleston Jr <dhjr@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: What is the zsh equivalent of csh's set echo?
- Date: Mon, 16 Sep 2002 17:15:46 -0500
- In-reply-to: <1F1D28572ECAD211BC490008C75D71F5025D6388@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <1F1D28572ECAD211BC490008C75D71F5025D6388@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author