* Re: Bug#864493: notmuch: bash completion eats typed option [not found] ` <877f0lxoo8.fsf%l.stelmach@samsung.com> @ 2017-06-09 15:28 ` David Bremner [not found] ` <CGME20170610103627eucas1p114948786db76094d5906857298785722@eucas1p1.samsung.com> 0 siblings, 1 reply; 6+ messages in thread From: David Bremner @ 2017-06-09 15:28 UTC (permalink / raw) To: Łukasz Stelmach, 864493-maintonly; +Cc: notmuch Łukasz Stelmach <l.stelmach@samsung.com> writes: > Package: notmuch > Version: 0.23.5-1~bpo8+1 > Severity: minor > > Dear Maintainer, > > When I type in bash > > notmuch search --output=<TAB><TAB> > > available options appear > > files messages summary tags threads > > After typing > > notmuch search --output=fi<TAB> > > I end up with > > notmuch search files > > instead of > > notmuch search --output=files > Hi Lukas; What version of the bash-completion package do you have installed? d ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CGME20170610103627eucas1p114948786db76094d5906857298785722@eucas1p1.samsung.com>]
* Re: Bug#864493: notmuch: bash completion eats typed option [not found] ` <CGME20170610103627eucas1p114948786db76094d5906857298785722@eucas1p1.samsung.com> @ 2017-06-10 10:36 ` Łukasz Stelmach 2017-08-20 13:25 ` Jani Nikula 0 siblings, 1 reply; 6+ messages in thread From: Łukasz Stelmach @ 2017-06-10 10:36 UTC (permalink / raw) To: David Bremner; +Cc: 864493-maintonly, notmuch [-- Attachment #1: Type: text/plain, Size: 517 bytes --] It was <2017-06-09 pią 17:28>, when David Bremner wrote: > Łukasz Stelmach <l.stelmach@samsung.com> writes: [...] >> After typing >> >> notmuch search --output=fi<TAB> >> >> I end up with >> >> notmuch search files >> >> instead of >> >> notmuch search --output=files >> > > What version of the bash-completion package do you have installed? 1:2.1-4.2 Let my try 1:2.1-4.3~bpo8+1… Still the same. )-: -- Łukasz Stelmach Samsung R&D Institute Poland Samsung Electronics [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 472 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug#864493: notmuch: bash completion eats typed option 2017-06-10 10:36 ` Łukasz Stelmach @ 2017-08-20 13:25 ` Jani Nikula [not found] ` <CGME20170823090005eucas1p126f0a1b6681a9c314199669de4a9a9ad@eucas1p1.samsung.com> 0 siblings, 1 reply; 6+ messages in thread From: Jani Nikula @ 2017-08-20 13:25 UTC (permalink / raw) To: Łukasz Stelmach, David Bremner; +Cc: notmuch, 864493-maintonly On Sat, 10 Jun 2017, Łukasz Stelmach <l.stelmach@samsung.com> wrote: > It was <2017-06-09 pią 17:28>, when David Bremner wrote: >> Łukasz Stelmach <l.stelmach@samsung.com> writes: > [...] >>> After typing >>> >>> notmuch search --output=fi<TAB> >>> >>> I end up with >>> >>> notmuch search files >>> >>> instead of >>> >>> notmuch search --output=files >>> >> >> What version of the bash-completion package do you have installed? > > 1:2.1-4.2 > > Let my try 1:2.1-4.3~bpo8+1… Still the same. )-: Is this still an issue? I can't reproduce this using bash-completion 1:2.1-4.3. Only two things I can think of: Please make sure you're actually using the bash completion package you cite, i.e. you don't include some old version locally. Please try without personal customization in your .bashrc and friends. BR, Jani. ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CGME20170823090005eucas1p126f0a1b6681a9c314199669de4a9a9ad@eucas1p1.samsung.com>]
* Re: Bug#864493: notmuch: bash completion eats typed option [not found] ` <CGME20170823090005eucas1p126f0a1b6681a9c314199669de4a9a9ad@eucas1p1.samsung.com> @ 2017-08-23 8:59 ` Łukasz Stelmach 2017-08-23 9:27 ` Jani Nikula 0 siblings, 1 reply; 6+ messages in thread From: Łukasz Stelmach @ 2017-08-23 8:59 UTC (permalink / raw) To: Jani Nikula; +Cc: David Bremner, notmuch, 864493-maintonly [-- Attachment #1: Type: text/plain, Size: 2099 bytes --] It was <2017-08-20 nie 15:25>, when Jani Nikula wrote: > On Sat, 10 Jun 2017, Łukasz Stelmach <l.stelmach@samsung.com> wrote: >> It was <2017-06-09 pią 17:28>, when David Bremner wrote: >>> Łukasz Stelmach <l.stelmach@samsung.com> writes: >> [...] >>>> After typing >>>> >>>> notmuch search --output=fi<TAB> >>>> >>>> I end up with >>>> >>>> notmuch search files >>>> >>>> instead of >>>> >>>> notmuch search --output=files >>> >>> What version of the bash-completion package do you have installed? >> >> 1:2.1-4.2 >> >> Let my try 1:2.1-4.3~bpo8+1… Still the same. )-: > > Is this still an issue? I can't reproduce this using bash-completion > 1:2.1-4.3. > > Only two things I can think of: Please make sure you're actually using > the bash completion package you cite, i.e. you don't include some old > version locally. Please try without personal customization in your > .bashrc and friends. 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. However, as far as I can tell this isn't unexpected behaviour. With notmuch search --output=fi in the command line the following line is executed COMPREPLY=( $( compgen -W "summary threads messages files tags" -- "${cur}" ) ) A few lines before "_init_completion -s" is called which sets ${prev} to "--output" and ${cur} "fi" due to _split_longopt being called. If I understand it readline replaces the whole word as it was before splitting ("${prev}=${cur}"). Hence the fix is to add -P "${prev}=" like this. COMPREPLY=( $( compgen -P "${prev}=" -W "summary threads messages files tags" -- "${cur}" ) ) Is there a general way to tell the completion engine not to replace anything before (and including) "="? Kind regards, -- Łukasz Stelmach Samsung R&D Institute Poland Samsung Electronics [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 472 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Bug#864493: notmuch: bash completion eats typed option 2017-08-23 8:59 ` Łukasz Stelmach @ 2017-08-23 9:27 ` Jani Nikula [not found] ` <CGME20170823105559eucas1p18f288bd2e8827bf858c1227cfbc26487@eucas1p1.samsung.com> 0 siblings, 1 reply; 6+ messages in thread From: Jani Nikula @ 2017-08-23 9:27 UTC (permalink / raw) To: Łukasz Stelmach; +Cc: David Bremner, Notmuch Mail, 864493-maintonly 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? Do you have a customized ~/.inputrc? BR, Jani. ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CGME20170823105559eucas1p18f288bd2e8827bf858c1227cfbc26487@eucas1p1.samsung.com>]
* Re: Bug#864493: notmuch: bash completion eats typed option [not found] ` <CGME20170823105559eucas1p18f288bd2e8827bf858c1227cfbc26487@eucas1p1.samsung.com> @ 2017-08-23 10:55 ` Łukasz Stelmach 0 siblings, 0 replies; 6+ messages in thread From: Łukasz Stelmach @ 2017-08-23 10:55 UTC (permalink / raw) To: Jani Nikula; +Cc: David Bremner, Notmuch Mail, 864493-maintonly [-- 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 --] ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-08-23 10:56 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [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
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).