mirror of
https://github.com/spf13/cobra
synced 2025-05-05 04:47:22 +00:00
style(bash-v2): remove unnecessary $ from array index variables
This commit is contained in:
parent
48a6fe5779
commit
10da1a8996
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ __%[1]s_handle_special_char()
|
||||||
local word=${comp%%"${comp##*${char}}"}
|
local word=${comp%%"${comp##*${char}}"}
|
||||||
local idx=${#COMPREPLY[*]}
|
local idx=${#COMPREPLY[*]}
|
||||||
while ((--idx >= 0)); do
|
while ((--idx >= 0)); do
|
||||||
COMPREPLY[$idx]=${COMPREPLY[$idx]#"$word"}
|
COMPREPLY[idx]=${COMPREPLY[idx]#"$word"}
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue