Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: setopt and alias questions
- X-seq: zsh-users 2123
 
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
 
- To: Sweth Chandramouli <sweth@xxxxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx
 
- Subject: Re: setopt and alias questions
 
- Date: Mon, 8 Feb 1999 12:30:47 -0800
 
- In-reply-to: <19990208144623.B4151@xxxxxxxxxxxxxxxxxxxx>
 
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
 
- References: <19990207193735.A2060@xxxxxxxxxxxxxxxxxxxx> 	<990207175931.ZM8940@xxxxxxxxxxxxxxxxxxxxxxx> 	<19990207235214.A2653@xxxxxxxxxxxxxxxxxxxx> 	<990207233343.ZM10079@xxxxxxxxxxxxxxxxxxxxxxx> 	<19990208103038.A3447@xxxxxxxxxxxxxxxxxxxx> 	<990208104550.ZM14297@xxxxxxxxxxxxxxxxxxxxxxx> 	<19990208141534.A4151@xxxxxxxxxxxxxxxxxxxx> 	<19990208144623.B4151@xxxxxxxxxxxxxxxxxxxx>
 
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author