diff options
| author | Koichi Murase <myoga.murase@gmail.com> | 2025-06-02 05:14:52 +0900 |
|---|---|---|
| committer | Koichi Murase <myoga.murase@gmail.com> | 2025-06-02 05:34:32 +0900 |
| commit | b28c88d5d2e2432f677a945c931ea58283d808fd (patch) | |
| tree | 3f417e5cfc6517d26bc8df8c7f5c6c099091d5ca /bash-completion/wipefs | |
| parent | e4071d496fdbd8b2f1ae8d44a19888f8bbd60f5e (diff) | |
| download | util-linux-b28c88d5d2e2432f677a945c931ea58283d808fd.tar.gz | |
bash-completion: prefer "command lsblk" to "lsblk" to avoid aliases
The user may define an alias lsblk to specify the default formatting,
such as -T, which would conflict with lsblk -r used in the Bash
completion settings. In the Bash completion settings, to prevent the
calls of lsblk -r ... from being replaced with lsblk -T -r ... and
failing, lsblk should be called using command lsblk.
Diffstat (limited to 'bash-completion/wipefs')
| -rw-r--r-- | bash-completion/wipefs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash-completion/wipefs b/bash-completion/wipefs index de172725b1..4c1fb4af70 100644 --- a/bash-completion/wipefs +++ b/bash-completion/wipefs @@ -60,7 +60,7 @@ _wipefs_module() ;; esac compopt -o bashdefault -o default - COMPREPLY=( $(compgen -W "$(lsblk -pnro name)" -- $cur) ) + COMPREPLY=( $(compgen -W "$(command lsblk -pnro name)" -- $cur) ) return 0 } complete -F _wipefs_module wipefs |
