From: Karel Zak Date: Tue, 31 Aug 2021 10:51:40 +0000 (+0200) Subject: su: (bash-completion) offer usernames rather than files X-Git-Tag: v2.38-rc1~265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=059811d096f0051d911f884d47ebc6147630990a;p=thirdparty%2Futil-linux.git su: (bash-completion) offer usernames rather than files Fixes: https://github.com/karelzak/util-linux/issues/1424 Signed-off-by: Karel Zak --- diff --git a/bash-completion/su b/bash-completion/su index 309505085d..913e445230 100644 --- a/bash-completion/su +++ b/bash-completion/su @@ -41,7 +41,7 @@ _su_module() esac local IFS=$'\n' compopt -o filenames - COMPREPLY=( $(compgen -f -- $cur) ) + COMPREPLY=( $(compgen -u -- $cur) ) return 0 } complete -F _su_module su