Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Removal of cond_match() - wrong?
- X-seq: zsh-workers 32680
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Removal of cond_match() - wrong?
- Date: Mon, 02 Jun 2014 21:22:11 -0700
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
PWS removed the seemingly unused cond_match() function in workers/32640,
but I was just glancing at Etc/zsh-development-guide and found in the
Modules section:
- int cond_match(args, num, str)
Again, the first two arguments are the same as for the other
functions. The third argument is any string. The result of the
function is non-zero if the num'th string from the array taken
as a glob pattern matches the given string.
So this is intended to be called from third-party modules. I suppose it
therefore should be put back.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author