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-completions: systemd-analyze set-log-level
[elogind.git]
/
shell-completion
/
bash
/
hostnamectl
diff --git
a/shell-completion/bash/hostnamectl
b/shell-completion/bash/hostnamectl
index a57bffe15f7647525d2ac6ba04b2bd9c39d5898e..38ab1344f3f31ee67faaed3cf7293623bc3168e5 100644
(file)
--- a/
shell-completion/bash/hostnamectl
+++ b/
shell-completion/bash/hostnamectl
@@
-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
}
_hostnamectl() {
}
_hostnamectl() {