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

Re: [Bug] COMP_WORDS is unquoted in bashcompinit which triggers npm completion bug



On Mon, 2020-02-24 at 18:50 +0000, Marc ‪‬ wrote:
> The fix is simple: quote `$words` so that empty strings are preserved:
> 
>     COMP_WORDS=( "${words[@]}" )
> 
> I have made the patch on my system and can confirm that it works.

That sounds entirely convincing, and I've committed it, though probably
few enough of us use bash completion much that it might take a while
to propagate to others who might notice the change.

Thanks
pws



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