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

Re: [RFC][PATCH] Add change-directory() widget function



Bart Schaefer wrote on Tue, Apr 20, 2021 at 20:18:24 -0700:
> On Tue, Apr 20, 2021 at 3:14 PM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > Should any of the words be quoted to protect against global aliases?
> 
> This is generally speaking a fruitless task.  Rather the function
> should be loaded with e.g. "autoload -U", as compinit does for all
> completion functions.

How so?  «PM_UNALIASED» turns «noaliases» on for the duration of parsing
the function itself, not for the duration of parsing the code which the
function dumps into $BUFFER when executed.




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