Lines Matching refs:bar

64 x=( [foo]=bar )
65 if [[ ${x[@]} != bar ]]
79 x.foo.bar=7
80 [[ ${x.foo.bar} == 7 ]] || err_exit '[[ ${x.foo.bar} != 7 ]]'
81 (( x.foo.bar == 7 ))|| err_exit '(( x.foo.bar != 7 ))'
82 [[ ${x.foo} == *bar=7* ]] || err_exit '[[ ${x.foo} != *bar=7* ]]'
88 $SHELL -c $'x=(foo=bar)\n[[ x == x ]]' 2> /dev/null ||
184 foo=( bar=foo barbar=bar)
185 [[ $foo == *bar=foo* ]] || err_exit 'no prefix elements in compound variable output'
213 ( [[ ${z.foo.bar:-abc} == abc ]] 2> /dev/null) || err_exit ':- not working with compound variables'
215 typeset -a stack.items=([0]=foo [1]=bar)
260 X=( bar=2 )
269 [[ $({ $SHELL -c 'x=(); typeset -a x.foo; x.foo=bar; print -r -- "$x"' ;} 2> /dev/null) == $'(\n\ttypeset -a foo=bar\n)' ]] || err_exit 'indexed array in compound variable with only element 0 defined fails'
271 foo=(typeset -a bar)
272 [[ $foo == *'typeset -a bar'* ]] || err_exit 'array attribute -a not preserved in compound variable'
274 typeset -A s=( [foo]=(y=2 z=3) [bar]=(y=4 z=5))
282 foo.bar=abc
284 typeset -C foo=(bar=def)
294 typeset -C bar bam
296 read -Cu3 bar
305 [[ $bar == "$foo" ]] || err_exit '$foo != $bar'
321 x=( float x=0 y=1; z=([foo]=abc [bar]=def))
342 x=( foo=(z=abc d=ghi) bar=abc; typeset -A r=([x]=3 [y]=4))
350 z.bar[0]=hello
351 z.bar[2]=world
352 z.bar[1]=(x=4 y=5)
354 typeset -a bar=(
426 typeset -C -A hello=( [foo]=bar)
427 [[ $(typeset -p hello) == 'typeset -C -A hello=([foo]=bar)' ]] || err_exit 'typeset -A -C with intial assignment not working'
429 [[ $($SHELL -c 'foo=(x=3 y=4);function bar { typeset z=4;: $z;};bar;print ${!foo.@}') == 'foo.x foo.y' ]] 2> /dev/null || err_exit '${!foo.@} after function not working'
440 [a]=( foo=bar)
441 [b]=( foo=bar)
442 [c d]=( foo=bar)
443 [e]=( foo=bar)
444 [f]=( foo=bar)
445 [g]=( foo=bar)
446 [h]=( foo=bar)
447 [i]=( foo=bar)
448 [j]=( foo=bar)
455 mica01[4]=( a_string="foo bar" )
460 expected=$'typeset -C -a mica01=([4]=(a_string=\'foo bar\';some_stuff=hello))'
641 bar=4
671 do c.board[1][$i]=(foo=bar)
673 exp=$'(\n\ttypeset -C -a board=(\n\t\t[1]=(\n\t\t\t[2]=(\n\t\t\t\tfoo=bar\n\t\t\t)\n\t\t\t[3]=(\n\t\t\t\tfoo=bar\n\t\t\t)\n\t\t)\n\t)\n)'
690 xx=(foo=bar)