Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "no_nomatch" and glob qualifiers



On Tue, Oct 6, 2015 at 12:22 AM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> Consider:
>
> % setopt nonomatch
> % echo x(/)
> x(/)
> % echo x(a)
> zsh: number expected
> %
>
> Should that not have output "x(a)" ?

I feel like there is a difference between "this is a valid glob that
has no matches" and "this is a syntax error", and this is that
difference.

% echo a(
>

also doesn't "work".

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author