aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion/wipefs
diff options
context:
space:
mode:
authorKoichi Murase <myoga.murase@gmail.com>2025-06-02 05:14:52 +0900
committerKoichi Murase <myoga.murase@gmail.com>2025-06-02 05:34:32 +0900
commitb28c88d5d2e2432f677a945c931ea58283d808fd (patch)
tree3f417e5cfc6517d26bc8df8c7f5c6c099091d5ca /bash-completion/wipefs
parente4071d496fdbd8b2f1ae8d44a19888f8bbd60f5e (diff)
downloadutil-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/wipefs2
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