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)
522 dave=foo; dave+=bar
552 unset foo
553 typeset -A foo
554 function foo.set
559 foo[barrier_hit]=yes
564 then foo[barrier_not_hit]=no
565 else foo[barrier_not_hit]=yes
570 foo[barrier_hit]=no
571 foo[bar]=1
572 (( foo[bar] == 1 )) || err_exit 'foo[bar] should be 1'
573 [[ ${foo[barrier_hit]} == no ]] || err_exit 'foo[barrier_hit] should be no'
574 [[ ${foo[barrier_not_hit]} == yes ]] || err_exit 'foo[barrier_not_hit] should be yes'
575 foo[barrier_hit]=no
576 foo[bar]=2
577 (( foo[bar] == 5 )) || err_exit 'foo[bar] should be 5'
578 [[ ${foo[barrier_hit]} == yes ]] || err_exit 'foo[barrier_hit] should be yes'
579 [[ ${foo[barrier_not_hit]} == no ]] || err_exit 'foo[barrier_not_hit] should be no'
615 x=foo
665 cmd='set --nounset; unset foo; : ${!foo*}'