From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1281 invoked from network); 8 Feb 1999 20:33:18 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Feb 1999 20:33:18 -0000 Received: (qmail 9081 invoked by alias); 8 Feb 1999 20:32:17 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2123 Received: (qmail 9072 invoked from network); 8 Feb 1999 20:32:07 -0000 From: "Bart Schaefer" Message-Id: <990208123047.ZM14645@candle.brasslantern.com> Date: Mon, 8 Feb 1999 12:30:47 -0800 In-Reply-To: <19990208144623.B4151@astaroth.nit.gwu.edu> Comments: In reply to Sweth Chandramouli "Re: setopt and alias questions" (Feb 8, 2:46pm) References: <19990207193735.A2060@astaroth.nit.gwu.edu> <990207175931.ZM8940@candle.brasslantern.com> <19990207235214.A2653@astaroth.nit.gwu.edu> <990207233343.ZM10079@candle.brasslantern.com> <19990208103038.A3447@astaroth.nit.gwu.edu> <990208104550.ZM14297@candle.brasslantern.com> <19990208141534.A4151@astaroth.nit.gwu.edu> <19990208144623.B4151@astaroth.nit.gwu.edu> X-Mailer: Z-Mail (4.0b.820 20aug96) To: Sweth Chandramouli , zsh-users@sunsite.auc.dk Subject: Re: setopt and alias questions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 8, 2:46pm, Sweth Chandramouli wrote: } Subject: Re: setopt and alias questions } } for those who are interested, here's the final version We have to stop meeting like this ... } if [[ -n $@ ]] ; then } listalloptions | egrep "${@:s/ /|/}" } else listalloptions } fi; That doesn't work, does it? zsh% argv=(x y z) zsh% print -l "${@:s/ /|/}" x y z zsh% print -l "${(j:|:)@}" x|y|z zsh% print -l "${*:gs/ /|/}" x|y|z -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com