Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _zarun:1: can't change option: vi
On Thu, Feb 13, 2025 at 3:00 PM Eric Nielsen <ericbn@xxxxxxx> wrote:
>
> Hi, I've observed the following issue with zargs
Hm:
% emulate zsh -c '() { print $options[vi]; options[vi]=on; }'
on
(anon): can't change option: vi
% emulate zsh -c '() { print $options[vi]; options[vi]=off }'
on
%
So ... the problem is that dosetopt() rejects the emacs and vi options
in sticky emulations even if they're not actually changing ... but
only if you're turning them on rather than turning them off, which
seems a bit sideways.
This requires a change to the source to fix, but except for the stderr
it doesn't actually change the behavior of zargs, so in the meantime
you can just append 2>/dev/null to the assignment to the options array
in the definition of _zarun at line 88 (or thereabouts) of
Functions/Misc/zargs
Messages sorted by:
Reverse Date,
Date,
Thread,
Author