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 != '' ]]
141 then err_exit '$foo not null after unset in subsehll'
144 if [[ $foo != bar ]]
145 then err_exit 'unset foo in subshell produces side effect '
147 unset foo
148 if [[ $( { : ${foo?hi there} ; } 2>&1) != *'hi there' ]]
149 then err_exit '${foo?hi there} with foo unset does not print hi there on 2'
175 unset -n foo
176 foo=junk
177 function foo.get
180 unset -f foo.get
182 if [[ $foo != stuff ]]
183 then err_exit "foo.get discipline not working"
185 if [[ $foo != junk ]]
186 then err_exit "foo.get discipline not working after unset"
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
210 if [[ $i != @([@*]) && ${#foo} != "$bar" ]]
260 for i in : % + / 3b '**' '***' '@@' '{' '[' '}' !! '*a' '$foo'
427 function foo
434 x=$(foo)
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
656 cmd='set --nounset; unset foo; : ${!foo*}'