Control: retitle -1 util-linux: su -s bash completion broken with chsh from src:shadow Control: tags -1 + confirmed
Hello Gabriel Paradzik, Thanks for your bug report. On Tue, Jan 14, 2020 at 04:46:16PM +0100, Gabriel Paradzik wrote: > 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. [...] Actually it's the other way around. We switched su and the su bash completion from src:shadow to src:util-linux implementation. We still use the chsh implementation from src:shadow (see #833256 ) and apparently the -l option only exists in the src:util-linux implementation of chsh. Switching to util-linux implementation of chsh et.al. will fix this issue, but unfortunately the work on that is lacking momentum at the moment. If someone cares enough about this issue they might want to change the bash completion to detect src:shadow chsh and work correctly with it if detected, but I would not be completely surprised if upstream is not super keen on carrying this change (even though they normally accept most patches submitted). Regards, Andreas Henriksson