From: Peter Stephenson <p.stephenson@samsung.com>
To: <zsh-workers@zsh.org>
Subject: Re: [Bug] COMP_WORDS is unquoted in bashcompinit which triggers npm completion bug
Date: Tue, 25 Feb 2020 09:57:08 +0000 [thread overview]
Message-ID: <1582624628.5157.1.camel@samsung.com> (raw)
In-Reply-To: <AM6PR02MB5638E5ABFE7534BB4F377A3184EC0@AM6PR02MB5638.eurprd02.prod.outlook.com>
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
prev parent reply other threads:[~2020-02-25 9:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20200224185129eucas1p248b9a846e81df7f598a74c27ff88cfe5@eucas1p2.samsung.com>
2020-02-24 18:50 ` Marc
2020-02-25 9:57 ` Peter Stephenson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1582624628.5157.1.camel@samsung.com \
--to=p.stephenson@samsung.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).