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

Re: Globbing inside conditional expression



A few minutes ago I wrote:

> I was expecting 'normal shell expansion' [as noted in the doc for
> conditional expressions] to include globbing, but am I
> misunderstanding this?

I promise I did search for the answer before posting, but I've just seen

    http://www.zsh.org/cgi-bin/mla/redirect?USERNUMBER=14830

where Bart Schaefer writes:

> Actually [[ -f XX* ]] is invalid because [[ ]] doesn't do globbing.
> You need the [ -f XX* ] form (see below).

answering my question.  Apologies for the noise.

Perhaps the documentation could be clarified though?

Ben.



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