File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -208,13 +208,13 @@ _comp_uniq()
208
208
}
209
209
210
210
# Obtain the largest index
211
- # @var[out] ret
211
+ # @var[out] REPLY
212
212
# @version bash-4.3
213
213
_comp_last_index ()
214
214
{
215
215
local -n _comp_last_index__array=$1
216
216
local -a _comp_last_index__indices=(" ${! _comp_last_index__array[@]} " )
217
- ret =${_comp_last_index__indices[*]: -1}
217
+ REPLY =${_comp_last_index__indices[*]: -1}
218
218
}
219
219
220
220
# @version bash-4.3
@@ -251,7 +251,7 @@ _comp_xfunc_ARRAY_reverse()
251
251
#
252
252
# -l Get the last index of matching elements.
253
253
#
254
- # @var[out] ret
254
+ # @var[out] REPLY
255
255
# @version bash-4.3
256
256
_comp_index_of ()
257
257
{
@@ -291,7 +291,7 @@ _comp_index_of()
291
291
fi
292
292
[[ $_old_nocasematch ]] && shopt -s nocasematch
293
293
294
- ret =-1
294
+ REPLY =-1
295
295
296
296
local -n _array=$1
297
297
if (( ${# _array[@]} )) ; then
@@ -306,7 +306,7 @@ _comp_index_of()
306
306
_comp_xfunc_ARRAY__predicate " ${_array[_i]} "
307
307
case $? in
308
308
0)
309
- ret =$_i
309
+ REPLY =$_i
310
310
return 0
311
311
;;
312
312
1) continue ;;
You can’t perform that action at this time.
0 commit comments