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

Re: _history-complete-older problems with $(

On 14 January 2016 at 05:48, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> Ah.  Another wrinkle I overlooked.  You need to store the original
> values of $PREFIX and $SUFFIX somewhere, e.g.
>     local origPREFIX=$PREFIX origSUFFIX=$SUFFIX
> Then, after "compadd -O found" but before trimming PREFIX and SUFFIX
> off of $found, you need

Setting PREFIX and SUFFIX this way changes things (apparently for the
better, the code works very well with them, except for $(<TAB> as I
shown in other video, the "Better" one), but it's interesting that
PREFIX and SUFFIX do not change their values, I showed this in
following video:


If I do PREFIX="$PREFIX" SUFFIX="$SUFFIX" then it doesn't change
things, interestingly, it's like no assignment would be done.

Best regards,

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