Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Globbing inside conditional expression
- X-seq: zsh-users 14890
- From: Ben North <ben@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Globbing inside conditional expression
- Date: Fri, 26 Feb 2010 10:18:01 +0000
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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