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

Re: Why approximate pattern doesn't match?



On 10 May 2016 at 17:40, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
> On Tue, 10 May 2016 17:21:33 +0200
> Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
>> Can (#a1) be embedded in parameter? Because it seems to not work. I do:
>>
>>     search_pattern="${search_buffer// ##/*~(#a1)^*}"
>
> I rather lost the point of all this right at the start, but the answer
> to the question you're asking may be that as "^" is also a negation you
> need to put the (#a1) after that, too, not just after the ~.

This works. Thanks!

The point is: search history with set of keywords, requiring all of
them to match.

Best regards,
Sebastian Gniazdowski



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