Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: delay argument interpretation
- X-seq: zsh-users 963
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: delay argument interpretation
- Date: Tue, 22 Jul 1997 09:10:33 -0700
- In-reply-to: <199707220823.JAA20676@xxxxxxxxxxxxxxxx>
- References: <199707220823.JAA20676@xxxxxxxxxxxxxxxx>
On Jul 22, 9:23am, Andrew Main wrote:
> Subject: Re: delay argument interpretation
>
> Bart Schaefer wrote:
> > show () {
> > show=()
> > show=($~*)
> > print -rc $show
> > }
> > alias show='noglob show'
>
> Why? What's wrong with
>
> function show {
> show=("$@")
> print -rc -- "$@"
> }
The latter fails to set $show to empty when the pattern doesn't match
anything. I have nomatch set, so if there's a globbing failure in the
arg list, "show" never executes. I want to force "show" to start, and
*then* get the globbing failure.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author