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
/
localectl
diff --git
a/shell-completion/bash/localectl
b/shell-completion/bash/localectl
index ef19f01461ced6321fc0aa558cf9c9ca13624060..bec9e78c64b1a531a6303f2a0ec566dfe0205107 100644
(file)
--- a/
shell-completion/bash/localectl
+++ b/
shell-completion/bash/localectl
@@
-18,9
+18,10
@@
# along with systemd; If not, see <http://www.gnu.org/licenses/>.
__contains_word () {
# along with systemd; If not, see <http://www.gnu.org/licenses/>.
__contains_word () {
- local word=$1; shift
- for w in $*; do [[ $w = $word ]] && return 0; done
- return 1
+ local w word=$1; shift
+ for w in "$@"; do
+ [[ $w = "$word" ]] && return
+ done
}
_localectl() {
}
_localectl() {