]> git.ipfire.org Git - thirdparty/util-linux.git/commit
whereis: use commands for Bash completions
authorSmitty <me@smitop.com>
Sun, 8 Aug 2021 22:04:30 +0000 (18:04 -0400)
committerSmitty <me@smitop.com>
Sun, 8 Aug 2021 22:04:30 +0000 (18:04 -0400)
commite091d5b7b10bedba3e4a60c780b9d747a32651dd
tree49d1b60e5ab68481ea6a6ca79d9d636eeac6d2e9
parent4be393a4ba59a2cada9d374c059544ea2bc0c0ad
whereis: use commands for Bash completions

Currently, the Bash completions for `whereis <TAB>` 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 <me@smitop.com>
bash-completion/whereis