From: Masatake YAMATO Date: Thu, 27 Mar 2025 20:41:47 +0000 (+0900) Subject: bash-completion: (setarch) show some options as the 1st arg X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4dd0c74c2fd4a795990195ef67dc314d8e1bebb4;p=thirdparty%2Futil-linux.git bash-completion: (setarch) show some options as the 1st arg Signed-off-by: Masatake YAMATO --- diff --git a/bash-completion/setarch b/bash-completion/setarch index 4496e97df..7d7bdb00c 100644 --- a/bash-completion/setarch +++ b/bash-completion/setarch @@ -10,7 +10,14 @@ _setarch_module() ;; esac if [ $COMP_CWORD -eq 1 ]; then - COMPREPLY=( $(compgen -W "$($1 --list)" -- $cur) ) + OPTS="$($1 --list)" + OPTS="$OPTS + --list + --help + --version + --show + " + COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 fi case $cur in