• Home
  • Raw
  • Download

Lines Matching full:words

8 # Takes a list of words in argument; each one of them is added to COMPREPLY if
15 for (( idx=3; idx < ${#words[@]}-1; idx++ )); do
16 if [[ $w == ${words[idx]} ]]; then
26 # Takes a list of words as argument; if any of those words is present on the
32 for (( idx=3; idx < ${#words[@]}-1; idx++ )); do
33 [[ $w == ${words[idx]} ]] && return 0
39 # Takes a list of words in argument; adds them all to COMPREPLY if none of them
140 for (( idx=3; idx < ${#words[@]}-1; idx++ )); do
141 case "${words[$((idx-2))]}" in
143 keyword=${words[$((idx-1))]}
144 ref=${words[$((idx))]}
171 for (( idx=7; idx < ${#words[@]}-1; idx++ )); do
172 if [[ ${words[idx]} == "value" ]]; then
217 for (( idx=7; idx < ${#words[@]}-1; idx++ )); do
218 if [[ ${words[idx]} == "value" ]]; then
258 local cur prev words objword json=0
262 if [[ ${words[cword]} == -* ]]; then
297 for (( i=1; i < ${#words[@]}; )); do
298 if [[ ${words[i]::1} == - ]] &&
299 [[ ${words[i]} != "-B" ]] && [[ ${words[i]} != "--base-btf" ]]; then
300 words=( "${words[@]:0:i}" "${words[@]:i+1}" )
306 cur=${words[cword]}
307 prev=${words[cword - 1]}
308 pprev=${words[cword - 2]}
310 local object=${words[1]} command=${words[2]}
447 if [[ ${#words[@]} -eq 3 ]]; then
452 if [[ ${#words[@]} -lt 6 ]]; then
457 obj=${words[3]}
459 if [[ ${words[-4]} == "map" ]]; then
463 if [[ ${words[-3]} == "map" ]]; then
464 if [[ ${words[-2]} == "idx" ]]; then
466 elif [[ ${words[-2]} == "name" ]]; then
471 if [[ ${words[-2]} == "map" ]]; then
563 if [[ ${#words[@]} -eq 4 ]]; then
825 for (( idx=3; idx < ${#words[@]}-1; idx++ )); do
826 if [[ ${words[idx]} == 'value' ]]; then
833 for (( idx=3; idx < ${#words[@]}-1; idx++ )); do
834 if [[ ${words[idx]} == 'key' ]]; then
944 case ${words[3]} in
949 if [[ ${words[3]} == "map" ]] && [[ $cword == 6 ]]; then