Fix su -s <tab> that reports invalid chsh -l. Signed-off-by: Stanislav Brabec <sbrabec@xxxxxxx> Reported-by: jun wang <junguo.wang@xxxxxxxx> --- bash-completion/su | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash-completion/su b/bash-completion/su index 309505085..9049b4888 100644 --- a/bash-completion/su +++ b/bash-completion/su @@ -14,7 +14,7 @@ _su_module() return 0 ;; '-s'|'--shell') - COMPREPLY=( $(compgen -W "$(chsh -l)" -- $cur) ) + COMPREPLY=( $(compgen -W "$(</etc/shells)" -- $cur) ) return 0 ;; '-h'|'--help'|'-V'|'--version') -- 2.28.0 -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@xxxxxxxx Křižíkova 148/34 (Corso IIa) tel: +420 284 084 060 186 00 Praha 8-Karlín fax: +420 284 084 001 Czech Republic http://www.suse.cz/ PGP: 830B 40D5 9E05 35D8 5E27 6FA3 717C 209F A04F CD76