Lines Matching refs:foo
117 nameref foo=${.sh.name}.save
118 foo=${.sh.value}
127 nameref foo=${.sh.name}.save
128 .sh.value=$foo
134 typeset +n foo
135 unset foo
136 foo=bar
138 unset foo
140 if [[ $foo != '' ]]
144 if [[ $foo != bar ]]
147 unset foo
148 if [[ $( { : ${foo?hi there} ; } 2>&1) != *'hi there' ]]
175 unset -n foo
176 foo=junk
177 function foo.get
180 unset -f foo.get
182 if [[ $foo != stuff ]]
185 if [[ $foo != junk ]]
196 eval foo='$'$i bar='$'{$i}
197 if [[ ${foo} != "${bar}" ]]
201 if [[ $i != [@*] && ${foo%?} != "$bar" ]]
205 if [[ $i != [@*] && ${foo#?} != "$bar" ]]
208 command eval foo='$'{$i} bar='$'{#$i} || err_exit "\${#$i} gives synta
513 dave=foo; dave+=bar
543 unset foo
544 typeset -A foo
545 function foo.set
550 foo[barrier_hit]=yes
555 then foo[barrier_not_hit]=no
556 else foo[barrier_not_hit]=yes
561 foo[barrier_hit]=no
562 foo[bar]=1
563 (( foo[bar] == 1 )) || err_exit 'foo[bar] should be 1'
564 [[ ${foo[barrier_hit]} == no ]] || err_exit 'foo[barrier_hit] should be no'
565 [[ ${foo[barrier_not_hit]} == yes ]] || err_exit 'foo[barrier_not_hit] should be yes'
566 foo[barrier_hit]=no
567 foo[bar]=2
568 (( foo[bar] == 5 )) || err_exit 'foo[bar] should be 5'
569 [[ ${foo[barrier_hit]} == yes ]] || err_exit 'foo[barrier_hit] should be yes'
570 [[ ${foo[barrier_not_hit]} == no ]] || err_exit 'foo[barrier_not_hit] should be no'
606 x=foo