summaryrefslogtreecommitdiff
path: root/completions/svcadm
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
commit6d88f1055806932d9291f96847d2b691cccda2cd (patch)
tree0ff79eedaa8a239331256048981deedbd0721965 /completions/svcadm
parent059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff)
downloadbash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/svcadm')
-rw-r--r--completions/svcadm16
1 files changed, 8 insertions, 8 deletions
diff --git a/completions/svcadm b/completions/svcadm
index 21cc723c..f23af1ff 100644
--- a/completions/svcadm
+++ b/completions/svcadm
@@ -2,8 +2,8 @@
#
# Copyright 2006 Yann Rouillard <yann@opencsw.org>
-#
-# svcadm accept any complete FMRI or abreviated FMRI
+#
+# svcadm accept any complete FMRI or abbreviated FMRI
# - a complete FMRI is svc:/foo/bar/bar/baz
# - abbreviated FMRI are foo/bar/bar/baz, bar/bar/baz, bar/baz or baz
#
@@ -11,7 +11,7 @@
# but to not clutter the interface with all completions, we will only
# cut every completion alternative at the next slash.
#
-# For exemple, if the user types <nothing><tab>, we will propose for svc://foo/bar/bar/baz
+# For example, if the user types <nothing><tab>, we will propose for svc://foo/bar/bar/baz
# the following completion: foo/, bar/ and baz
# If the user types <b><tab>, we will propose: bar/ and baz
# If the user types <bar/><tab>, we will propose: bar/bar/ and bar/baz
@@ -55,7 +55,7 @@ _smf_complete_fmri ()
fmri_part_list="$fmri"
fi
- # Here we make sure the completions begins with the pattern and
+ # Here we make sure the completions begins with the pattern and
# we cut them at the first slash
for fmri_part in $fmri_part_list; do
[[ "$fmri_part" == $cur* ]] || continue
@@ -74,14 +74,14 @@ _smf_complete_fmri ()
# next completion alternatives
local i=${#COMPREPLY[*]}
if [[ $i -gt 0 ]] && [[ "${COMPREPLY[$((--i))]}" == */ ]]; then
- # we have to iterate throught the list as we may have duplicate
+ # we have to iterate through the list as we may have duplicate
while [[ $i -ne 0 ]]; do
[[ "${COMPREPLY[$i]}" != "${COMPREPLY[$((i - 1))]}" ]] && break
((i--))
done
if [[ $i -eq 0 ]]; then
_smf_complete_fmri "${COMPREPLY[0]}" "$prefix"
- return 0
+ return
fi
fi
@@ -97,7 +97,7 @@ _smf_complete_fmri ()
_svcadm ()
{
- local cur prev words cword
+ local cur prev words cword
_init_completion -n : || return
local command_list="enable disable restart refresh clear mark milestone"
@@ -140,4 +140,4 @@ _svcadm ()
} &&
complete -F _svcadm svcadm
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh