Package: bash-completion
Version: 1:2.10-1
Severity: normal
Tags: patch

Dear Maintainer,

The umount completion seems to depend on gawk's gensub() [1]
being present in awk, but Debian installs mawk,
which doesn't have it [2], by default.

This has led to this transcript on a new-ish sid system:

root@aqq:~# umount sd<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
<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
^C


The umount completion is the only one with this specific problem:

misio@aqq:~$ grep -r gensub /usr/share/bash-completion/
/u/s/b-c/c/umount:      homeless = gensub(ENVIRON["HOME"], "\\\\~", "g", 
homeless)
/u/s/b-c/c/umount:      homeless = gensub(/(\s)/, "\\\\\\1", "g", homeless)
/u/s/b-c/c/umount:      reldir = gensub(ENVIRON["PWD"]"/", "", "g", reldir)
/u/s/b-c/c/umount:      reldir = gensub(/(\s)/, "\\\\\\1", "g", reldir)


And, having looked through each instance of "awk" in
/usr/share/bash-completion, the only thing that stood out is that
pkgutil uses "nawk" for one invocation (which works, since
it's provided by alias, but is inconsistent).


[1]: https://www.gnu.org/software/gawk/manual/html_node/String-Functions.html
[2]: 
https://invisible-island.net/mawk/manpage/mawk.html#h3-8_-Built-in-functions


Yours,
наб


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

Kernel: Linux 5.5.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information

Attachment: signature.asc
Description: PGP signature

Reply via email to