From 4dd0c74c2fd4a795990195ef67dc314d8e1bebb4 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Fri, 28 Mar 2025 05:41:47 +0900 Subject: [PATCH] bash-completion: (setarch) show some options as the 1st arg Signed-off-by: Masatake YAMATO --- bash-completion/setarch | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bash-completion/setarch b/bash-completion/setarch index 4496e97df8..7d7bdb00c5 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 -- 2.47.3