From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8285 invoked from network); 16 Sep 2002 22:18:05 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Sep 2002 22:18:05 -0000 Received: (qmail 18494 invoked by alias); 16 Sep 2002 22:17:44 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5356 Received: (qmail 18481 invoked from network); 16 Sep 2002 22:17:41 -0000 Date: Mon, 16 Sep 2002 17:15:46 -0500 From: David Huttleston Jr To: zsh-users@sunsite.dk Subject: Re: What is the zsh equivalent of csh's set echo? Message-ID: <20020916221546.GA27099@hddesign.com> References: <1F1D28572ECAD211BC490008C75D71F5025D6388@NPRI54EXC18.NPT.NUWC.NAVY.MIL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1F1D28572ECAD211BC490008C75D71F5025D6388@NPRI54EXC18.NPT.NUWC.NAVY.MIL> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 4.6-RELEASE 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