Skip to content

Commit 9a03b80

Browse files
committed
hcitool,svcadm,tar: Spelling fixes
1 parent 6388b8f commit 9a03b80

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

completions/hcitool

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# bash completion for bluez utils -*- shell-script -*-
22

3-
_bluetooth_adresses()
3+
_bluetooth_addresses()
44
{
55
if [[ -n ${COMP_BLUETOOTH_SCAN:-} ]]; then
66
COMPREPLY+=( $( compgen -W "$( hcitool scan | \
@@ -65,7 +65,7 @@ _hcitool()
6565
name|info|dc|rssi|lq|afh|auth|key|clkoff|lst)
6666
_count_args
6767
if [[ $args -eq 2 ]]; then
68-
_bluetooth_adresses
68+
_bluetooth_addresses
6969
fi
7070
;;
7171
cc)
@@ -74,30 +74,30 @@ _hcitool()
7474
else
7575
_count_args
7676
if [[ $args -eq 2 ]]; then
77-
_bluetooth_adresses
77+
_bluetooth_addresses
7878
fi
7979
fi
8080
;;
8181
sr)
8282
_count_args
8383
if [[ $args -eq 2 ]]; then
84-
_bluetooth_adresses
84+
_bluetooth_addresses
8585
else
8686
COMPREPLY=( $( compgen -W 'master slave' -- "$cur" ) )
8787
fi
8888
;;
8989
cpt)
9090
_count_args
9191
if [[ $args -eq 2 ]]; then
92-
_bluetooth_adresses
92+
_bluetooth_addresses
9393
else
9494
_bluetooth_packet_types
9595
fi
9696
;;
9797
tpl|enc|clock)
9898
_count_args
9999
if [[ $args -eq 2 ]]; then
100-
_bluetooth_adresses
100+
_bluetooth_addresses
101101
else
102102
COMPREPLY=( $( compgen -W '0 1' -- "$cur" ) )
103103
fi
@@ -114,7 +114,7 @@ _sdptool()
114114

115115
case $prev in
116116
--bdaddr)
117-
_bluetooth_adresses
117+
_bluetooth_addresses
118118
return 0
119119
;;
120120
esac
@@ -144,7 +144,7 @@ _sdptool()
144144
if [[ "$cur" == -* ]]; then
145145
COMPREPLY=( $( compgen -W '--tree --raw --xml' -- "$cur" ) )
146146
else
147-
_bluetooth_adresses
147+
_bluetooth_addresses
148148
fi
149149
;;
150150
add)
@@ -183,7 +183,7 @@ _l2ping()
183183
if [[ "$cur" == -* ]]; then
184184
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
185185
else
186-
_bluetooth_adresses
186+
_bluetooth_addresses
187187
fi
188188
} &&
189189
complete -F _l2ping l2ping
@@ -200,7 +200,7 @@ _rfcomm()
200200
;;
201201
-i)
202202
_bluetooth_devices
203-
_bluetooth_adresses
203+
_bluetooth_addresses
204204
return 0
205205
;;
206206
esac
@@ -223,7 +223,7 @@ _rfcomm()
223223
case $arg in
224224
connect|bind)
225225
if [[ $args -eq 3 ]]; then
226-
_bluetooth_adresses
226+
_bluetooth_addresses
227227
fi
228228
;;
229229
esac
@@ -240,7 +240,7 @@ _ciptool()
240240
case $prev in
241241
-i)
242242
_bluetooth_devices
243-
_bluetooth_adresses
243+
_bluetooth_addresses
244244
return 0
245245
;;
246246
esac
@@ -260,7 +260,7 @@ _ciptool()
260260
connect|release|loopback)
261261
_count_args
262262
if [[ $args -eq 2 ]]; then
263-
_bluetooth_adresses
263+
_bluetooth_addresses
264264
fi
265265
;;
266266
esac
@@ -321,7 +321,7 @@ _hciconfig()
321321
putkey|delkey)
322322
_count_args
323323
if [[ $args -eq 2 ]]; then
324-
_bluetooth_adresses
324+
_bluetooth_addresses
325325
fi
326326
;;
327327
lm)
@@ -370,7 +370,7 @@ _hciattach()
370370
COMPREPLY=( $( compgen -W 'flow noflow' -- "$cur" ) )
371371
;;
372372
5)
373-
_bluetooth_adresses
373+
_bluetooth_addresses
374374
;;
375375
esac
376376
fi

completions/svcadm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# Copyright 2006 Yann Rouillard <yann@opencsw.org>
44

55
#
6-
# svcadm accept any complete FMRI or abreviated FMRI
6+
# svcadm accept any complete FMRI or abbreviated FMRI
77
# - a complete FMRI is svc:/foo/bar/bar/baz
88
# - abbreviated FMRI are foo/bar/bar/baz, bar/bar/baz, bar/baz or baz
99
#
1010
# The goal of this function is to be able to propose all alternatives,
1111
# but to not clutter the interface with all completions, we will only
1212
# cut every completion alternative at the next slash.
1313
#
14-
# For exemple, if the user types <nothing><tab>, we will propose for svc://foo/bar/bar/baz
14+
# For example, if the user types <nothing><tab>, we will propose for svc://foo/bar/bar/baz
1515
# the following completion: foo/, bar/ and baz
1616
# If the user types <b><tab>, we will propose: bar/ and baz
1717
# If the user types <bar/><tab>, we will propose: bar/bar/ and bar/baz
@@ -74,7 +74,7 @@ _smf_complete_fmri ()
7474
# next completion alternatives
7575
local i=${#COMPREPLY[*]}
7676
if [[ $i -gt 0 ]] && [[ "${COMPREPLY[$((--i))]}" == */ ]]; then
77-
# we have to iterate throught the list as we may have duplicate
77+
# we have to iterate through the list as we may have duplicate
7878
while [[ $i -ne 0 ]]; do
7979
[[ "${COMPREPLY[$i]}" != "${COMPREPLY[$((i - 1))]}" ]] && break
8080
((i--))

completions/tar

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
# FIXME: at least 'tar -<tab>' should show some helping text (apart from just
3434
# pure option advices)
3535
# FIXME: short option completion should be more intuitive
36-
# - verbose mode option should be adviced multiple times
37-
# - mode option should be adviced only once
38-
# - format option should be adviced only once
36+
# - verbose mode option should be advised multiple times
37+
# - mode option should be advised only once
38+
# - format option should be advised only once
3939
# ...
4040

4141
__gtar_parse_help_opt()
@@ -568,7 +568,7 @@ _gtar()
568568
[[ " $long_arg_req " =~ \ $prev=\ ]] && break
569569

570570
# parameter with optional argument passed with =, something like
571-
# --ocurrence=*<TAB> which is not handled above
571+
# --occurrence=*<TAB> which is not handled above
572572
[[ " $long_arg_opt " =~ \ $prev\ ]] && break
573573

574574
# if there is some unknown option with '=', for example

0 commit comments

Comments
 (0)