From: Smitty Date: Sun, 8 Aug 2021 22:04:30 +0000 (-0400) Subject: whereis: use commands for Bash completions X-Git-Tag: v2.38-rc1~312^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e091d5b7b10bedba3e4a60c780b9d747a32651dd;p=thirdparty%2Futil-linux.git whereis: use commands for Bash completions Currently, the Bash completions for `whereis ` gives `whereis file` ("file" is not a placeholder here, it literally expands to that). This fixes that by passing the `-c` flag to `compgen` to request completions for command names. Signed-off-by: Smitty van Bodegom --- diff --git a/bash-completion/whereis b/bash-completion/whereis index 0dcbac35bc..013f68c72d 100644 --- a/bash-completion/whereis +++ b/bash-completion/whereis @@ -22,7 +22,7 @@ _whereis_module() return 0 ;; esac - COMPREPLY=( $(compgen -W "file" -- $cur) ) + COMPREPLY=( $(compgen -c -- $cur) ) return 0 } complete -F _whereis_module whereis