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

Re: Safety guards for typos



On 2022-01-24 at 02:46 +0100, Mikael Magnusson wrote:
> setopt NO_MULTI_FUNC_DEF would probably do the trick in this case,
> though it will also prevent explicitly saying mv cp ln() { whatever }.

Hrm, I did remember that such an option was available, but was hoping
for something to prevent the glob qualifier from failing through.

I do use multi func definitions, but I think only in one place, so I
could unset it in that file and reset it afterwards.

-Phil




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