Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: -prefix conditional expression operator
- X-seq: zsh-users 14578
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh users list <zsh-users@xxxxxxx>
- Subject: Re: -prefix conditional expression operator
- Date: Wed, 18 Nov 2009 00:45:39 -0800
- In-reply-to: <19203.36741.98177.266860@xxxxxxxxxxxxxxxxxx>
- 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
- References: <19203.36741.98177.266860@xxxxxxxxxxxxxxxxxx>
On Nov 18, 1:09am, Greg Klanderman wrote:
}
} Exactly what pattern syntax is allowed by the -prefix operator in
} conditional expressions (in completion functions, of course)?
You've got the right pattern syntax, but the patterns must be quoted:
[[ -prefix '(\\|)\^/' ]]
Module-supplied operators like -prefix can't change the shell's basic
syntax rules.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author