summaryrefslogtreecommitdiff
path: root/shell-completion/bash/systemd-analyze
diff options
context:
space:
mode:
Diffstat (limited to 'shell-completion/bash/systemd-analyze')
-rw-r--r--shell-completion/bash/systemd-analyze7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze
index 11276ef09c..33833aac10 100644
--- a/shell-completion/bash/systemd-analyze
+++ b/shell-completion/bash/systemd-analyze
@@ -19,9 +19,10 @@
# 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
}
_systemd_analyze() {