chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
shell-completion: busctl
[elogind.git]
/
shell-completion
/
bash
/
loginctl
diff --git
a/shell-completion/bash/loginctl
b/shell-completion/bash/loginctl
index 3104b305fa49b55c5e344b67272730ed4c96e4b1..b0816a3b868ed39a29412f211d7b9fcd05aa1549 100644
(file)
--- a/
shell-completion/bash/loginctl
+++ b/
shell-completion/bash/loginctl
@@
-70,7
+70,7
@@
_loginctl () {
[ATTACH]='attach'
)
- 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]}