Lines Matching refs:foo

90 x=$(foo=abc $SHELL <<!
91 foo=bar
104 readonly $a=foo
105 if [[ $b != foo ]]
135 unset -f foo
136 function foo function
143 foo 1
147 foo
153 unset foo
154 foo=bar
155 if [[ $(export | grep ^foo=) != 'foo=bar' ]]
158 unset foo
159 read foo <<!
162 if [[ $(export | grep ^foo=) != 'foo=bar' ]]
215 unset foo bar
219 export foo=hello
221 [[ $foo == hello ]] || err_exit 'export scoping problem in function'
224 [[ $(export | grep foo) == 'foo=hello' ]] || err_exit 'export not working in functions'
265 foo=abc
271 unset foo z
282 function foo function
287 [[ $(foo) == bar=xxx ]] || err_exit 'typeset -p not working inside a function'
288 unset foo
289 typeset -L5 foo
290 [[ $(typeset -p foo) == 'typeset -L 5 foo' ]] || err_exit 'typeset -p not working for variables wit…
292 typeset -L3 foo=aaa
293 typeset -L6 foo=bbbbbb
294 [[ \$foo == bbbbbb ]]
298 typeset -R3 foo=aaa
299 typeset -R6 foo=bbbbbb
300 [[ \$foo == bbbbbb ]]
305 unset foo
306 typeset -b -Z10 foo
307 read foo <<< 'abcdefghijklmnop'
308 [[ $foo == "$expected" ]] || err_exit 'read foo, where foo is "typeset -b -Z10" not working'
309 unset foo
310 typeset -b -Z10 foo
311 read -N10 foo <<< 'abcdefghijklmnop'
312 [[ $foo == "$expected" ]] || err_exit 'read -N10 foo, where foo is "typeset -b -Z10" not working'
313 unset foo
314 typeset -b -A foo
315 read -N10 foo[4] <<< 'abcdefghijklmnop'
316 [[ ${foo[4]} == "$expected" ]] || err_exit 'read -N10 foo, where foo is "typeset -b -A" foo not wo…
317 unset foo
318 typeset -b -a foo
319 read -N10 foo[4] <<< 'abcdefghijklmnop'
320 [[ ${foo[4]} == "$expected" ]] || err_exit 'read -N10 foo, where foo is "typeset -b -a" foo not wo…
321 [[ $(printf %B foo[4]) == abcdefghij ]] || err_exit 'printf %B for binary associative array element…
322 [[ $(printf %B foo[4]) == abcdefghij ]] || err_exit 'printf %B for binary indexed array element not…
323 unset foo