Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Better way to execute commands from history?
- X-seq: zsh-users 14341
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Better way to execute commands from history?
- Date: Thu, 03 Sep 2009 08:36:17 -0700
- In-reply-to: <237967ef0909030749i1d4e3304rae5ee8d9b274df63@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <6a42eec70909021254p62849de5r2c53d7f29fec3f07@xxxxxxxxxxxxxx> <237967ef0909021324m6e4b06cbw5bd9c3ae82f35568@xxxxxxxxxxxxxx> <m3skf4qeii.fsf@xxxxxxxxxxxxxx> <237967ef0909030749i1d4e3304rae5ee8d9b274df63@xxxxxxxxxxxxxx>
On Sep 3, 4:49pm, Mikael Magnusson wrote:
}
} the doisearch() function already takes a 'pattern' argument that
} could be extended to be an enum instead of on/off, and have it use
} regcomp/regexec instead of the builtin patcompile() function family.
That'd also introduce a dependency into a part of the code that has
never required a regular expression library before.
It'd be better to have doisearch call out to a shell function at that
point to do the comparison, then you could write your own search
algoritms. Unclear whether that'd be acceptably fast, though.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author