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

Re: Quote of % in a completed func name?



On Mon, Sep 18, 2023 at 7:56 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> BUFFER=${(*)BUFFER//#%(#b)(${(kj:|:)~functions[(I)%*]})/\\\\$match[1]}
>
> (remove (*) and setopt extendedglob for older zsh)

Oh, remove the #% too, that was a leftover from testing, you want to
match anywhere in the buffer not the whole buffer.




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