Package: bash-completion
Version: 1:2.8-6
Severity: normal

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


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:

    $ 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"



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.3.0-3-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), LANGUAGE=de_AT:de (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

--

Reply via email to