unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: "Łukasz Stelmach" <l.stelmach@samsung.com>
To: Jani Nikula <jani@nikula.org>
Cc: David Bremner <david@tethera.net>,
	Notmuch Mail <notmuch@notmuchmail.org>,
	864493-maintonly@bugs.debian.org
Subject: Re: Bug#864493: notmuch: bash completion eats typed option
Date: Wed, 23 Aug 2017 12:55:52 +0200	[thread overview]
Message-ID: <87inher1s7.fsf%l.stelmach@samsung.com> (raw)
In-Reply-To: <CAB+hUn8JrC680D-O95+=F0w3T43B=p8rqYsf52XyjmLVf4xvvg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1537 bytes --]

Control: reassign -1 npm 1.4.21+ds-2

Dear Maintainer of the npm package.

The reassignment of COMP_WORDBREAKS variable in
/etc/bash_completion.d/npm causes serious problems described in this bug.

It was <2017-08-23 śro 11:27>, when Jani Nikula wrote:
> On Wed, Aug 23, 2017 at 11:59 AM, Łukasz Stelmach
> <l.stelmach@samsung.com> wrote:
>> I looked carefuly and I am sure I use only packaged bash-completion
>> configuration. I looked also at other commands which use the
>> --long-option=VALUE pattern (e.g. mkinitrd --with=, nslookup -class=)
>> and completions for them fail the same way, so it seems more like
>> bash-completion issue rather than notmuch one.
>
> mkinitrd --with= and nslookup -class= completions work for me just
> fine. Indeed does not look like a notmuch specific issue to me either.
>
>> Is there a general way to tell the completion engine not to replace
>> anything before (and including) "="?
>
> I thought _init_completion -s parameter would cover it.
>
> What do you have in $COMP_WORDBREAKS?

    $ printf "$COMP_WORDBREAKS" | hexdump -vC
    00000000  20 09 0a 22 27 40 3e 3c  3d 3b 7c 26 28 3a        | .."'@><=;|&(:|
    $ COMP_WORDBREAKS="=${COMP_WORDBREAKS}"

Bingo!

    $ fgrep -r COMP_WORDBREAKS /etc

And the answer is:

    /etc/bash_completion.d/npm:COMP_WORDBREAKS=${COMP_WORDBREAKS/=/}


Thank you very much for your assistance. I am reassigning the bug to the
npm package.
-- 
Łukasz Stelmach
Samsung R&D Institute Poland
Samsung Electronics

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

      parent reply	other threads:[~2017-08-23 10:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170609134256eucas1p2fe93ad1348f8c6befb4e2449c7e7f354@eucas1p2.samsung.com>
     [not found] ` <877f0lxoo8.fsf%l.stelmach@samsung.com>
2017-06-09 15:28   ` Bug#864493: notmuch: bash completion eats typed option David Bremner
     [not found]     ` <CGME20170610103627eucas1p114948786db76094d5906857298785722@eucas1p1.samsung.com>
2017-06-10 10:36       ` Łukasz Stelmach
2017-08-20 13:25         ` Jani Nikula
     [not found]           ` <CGME20170823090005eucas1p126f0a1b6681a9c314199669de4a9a9ad@eucas1p1.samsung.com>
2017-08-23  8:59             ` Łukasz Stelmach
2017-08-23  9:27               ` Jani Nikula
     [not found]                 ` <CGME20170823105559eucas1p18f288bd2e8827bf858c1227cfbc26487@eucas1p1.samsung.com>
2017-08-23 10:55                   ` Łukasz Stelmach [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

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87inher1s7.fsf%l.stelmach@samsung.com \
    --to=l.stelmach@samsung.com \
    --cc=864493-maintonly@bugs.debian.org \
    --cc=david@tethera.net \
    --cc=jani@nikula.org \
    --cc=notmuch@notmuchmail.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://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).