Control: retitle -1 bash-completion: "umount" completion breaks on spaces
Control: tags -1 + confirmed

On 02 Jan 2020, Philipp Marek wrote:

>With only the default "mawk" installed, auto-completion gives errors:
>
>     $ umount /<tab>
>     awk: line 18: function gensub never defined
>     awk: line 18: function gensub never defined
>     awk: line 18: function gensub never defined
>     awk: line 18: function gensub never defined

I confirm that this is true with bash-completion 2.8-6.  On the other
hand, with the current version in unstable, 2.10-1, it doesn't happen
anymore (nor does it with 2.9-1).  I don't have plans to add backports
for bash-completion, and I would mark this bug as fixed since 2.9-1,
however...

>With "gawk" installed (which gets used as more important alternative
>automatically), this works as expected.
>
>When using a debian live USB stick (which has spaces in the label),
>autocompletion is broken though:

... this is a different problem and still happens with the current
version, 2.10-1.

So I'll just rename the bug report so that it only refers to this
second problem.

I don't have a solution, yet, but thanks for the bug report.

>     $ umount /media/<tab>
>gives
>     $ umount /media/user/d-live nf 10.2.0 lx amd64
>     umount: /media/user/d-live: kein Einhängepunkt angegeben.
>     umount: nf: kein Einhängepunkt angegeben.
>     umount: 10.2.0: kein Einhängepunkt angegeben.
>     umount: lx: kein Einhängepunkt angegeben.
>     umount: amd64: kein Einhängepunkt angegeben.
>
>I need to manually put quotes around that:
>
>     $ umount "/media/user/d-live nf 10.2.0 lx amd64"

Confirmed.

Reply via email to