diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-02-06 06:31:22 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-02-06 06:45:00 +0100 |
commit | 3ce09b7da2eb8b888066468663b2b5c81a05a03c (patch) | |
tree | c7738800d667a5a1a876d888d85de312ecc3e6e6 /shell-completion/bash/udevadm | |
parent | core: only send SIGHUP when doing first kill, not when doing final sigkill (diff) | |
download | systemd-3ce09b7da2eb8b888066468663b2b5c81a05a03c.tar.xz systemd-3ce09b7da2eb8b888066468663b2b5c81a05a03c.zip |
bash-completion: fix completion of complete verbs
When doing 'command verb<TAB>', the arguments for verb would be
proposed, but it is too early. We should complete verb first.
https://bugs.freedesktop.org/show_bug.cgi?id=74596
Diffstat (limited to 'shell-completion/bash/udevadm')
-rw-r--r-- | shell-completion/bash/udevadm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/bash/udevadm b/shell-completion/bash/udevadm index d58cdf532d..b828b8dd7c 100644 --- a/shell-completion/bash/udevadm +++ b/shell-completion/bash/udevadm @@ -36,7 +36,7 @@ _udevadm() { local verbs=(info trigger settle control monitor hwdb test-builtin test) - for ((i=0; i <= COMP_CWORD; i++)); do + for ((i=0; i < COMP_CWORD; i++)); do if __contains_word "${COMP_WORDS[i]}" "${verbs[@]}" && ! __contains_word "${COMP_WORDS[i-1]}" ${OPTS[ARG]}; then verb=${COMP_WORDS[i]} |