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'
266 foo=abc
272 unset foo z
284 function foo function
289 [[ $(foo) == bar=xxx ]] || err_exit 'typeset -p not working inside a function'
290 unset foo
291 typeset -L5 foo
292 [[ $(typeset -p foo) == 'typeset -L 5 foo' ]] || err_exit 'typeset -p not working for variables wit…
294 typeset -L3 foo=aaa
295 typeset -L6 foo=bbbbbb
296 [[ \$foo == bbbbbb ]]
300 typeset -R3 foo=aaa
301 typeset -R6 foo=bbbbbb
302 [[ \$foo == bbbbbb ]]
307 unset foo
308 typeset -b -Z10 foo
309 read foo <<< 'abcdefghijklmnop'
310 [[ $foo == "$expected" ]] || err_exit 'read foo, where foo is "typeset -b -Z10" not working'
311 unset foo
312 typeset -b -Z10 foo
313 read -N10 foo <<< 'abcdefghijklmnop'
314 [[ $foo == "$expected" ]] || err_exit 'read -N10 foo, where foo is "typeset -b -Z10" not working'
315 unset foo
316 typeset -b -A foo
317 read -N10 foo[4] <<< 'abcdefghijklmnop'
318 [[ ${foo[4]} == "$expected" ]] || err_exit 'read -N10 foo, where foo is "typeset -b -A" foo not wo…
319 unset foo
320 typeset -b -a foo
321 read -N10 foo[4] <<< 'abcdefghijklmnop'
322 [[ ${foo[4]} == "$expected" ]] || err_exit 'read -N10 foo, where foo is "typeset -b -a" foo not wo…
323 [[ $(printf %B foo[4]) == abcdefghij ]] || err_exit 'printf %B for binary associative array element…
324 [[ $(printf %B foo[4]) == abcdefghij ]] || err_exit 'printf %B for binary indexed array element not…
325 unset foo
413 HISTFILE=foo
415 HISTFILE=foo
416 [[ $HISTFILE == foo ]] || err_exit 'typeset -u PS1 affects HISTFILE'
448 [[ ${x:=foo} == foo ]] || err_exit '${x:=foo} with x unset, not foo when x is a lowercase variable'
464 typeset -L -Z x=foo
467 unset foo
468 typeset -Z2 foo=3
469 [[ $(typeset -p foo) == 'typeset -Z 2 -R 2 foo=03' ]] || err_exit '-Z2 not working'
470 export foo
471 [[ $(typeset -p foo) == 'typeset -x -Z 2 -R 2 foo=03' ]] || err_exit '-Z2 not working after export'