Package: util-linux
Version: 2.33.1-0.1
Severity: normal

Dear Maintainer,

using the bash completion on "su -s" shows the following:

# su -s chsh: invalid option -- 'l'
Usage: chsh [options] [LOGIN]

Options:
  -h, --help                    display this help message and exit
  -R, --root CHROOT_DIR         directory to chroot into
  -s, --shell SHELL             new login shell for the user account

It seems the chsh utility doesn't have a -l option any more.
I could fix it by editing the file
/usr/share/bash-completion/completions/su

old
 16                 '-s'|'--shell')
 17                         COMPREPLY=( $(compgen -W "$(chsh -l)" -- $cur) )
 18                         return 0
 19                         ;;

new
 16                 '-s'|'--shell')
 17                         _shells
 18                         return 0
 19                         ;;


    Gabriel Paradzik


-- System Information:
Debian Release: 10.2
  APT prefers stable
  APT policy: (700, 'stable'), (500, 'stable-updates'), (100, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-6-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages util-linux depends on:
ii  fdisk          2.33.1-0.1
ii  libaudit1      1:2.8.4-3
ii  libblkid1      2.33.1-0.1
ii  libc6          2.28-10
ii  libcap-ng0     0.7.9-2
ii  libmount1      2.33.1-0.1
ii  libpam0g       1.3.1-5
ii  libselinux1    2.8-1+b1
ii  libsmartcols1  2.33.1-0.1
ii  libsystemd0    241-7~deb10u2
ii  libtinfo6      6.1+20181013-2+deb10u2
ii  libudev1       241-7~deb10u2
ii  libuuid1       2.33.1-0.1
ii  login          1:4.5-1.1
ii  zlib1g         1:1.2.11.dfsg-1

util-linux recommends no packages.

Versions of packages util-linux suggests:
pn  dosfstools          <none>
ii  kbd                 2.0.4-4
ii  util-linux-locales  2.33.1-0.1

-- no debconf information

Reply via email to