Lines Matching refs:bar
40 bar=bye
45 1) print -r - "$foo" "$bar";;
48 integer bar=10
49 print -r - "$foo" "$bar";;
71 if [[ $(bar=foo foobar 1) != '33 foo' ]]
74 if [[ $bar == foo ]]
124 print bar
132 if [[ $(foo) != bar ]]
191 print bar
193 if [[ $(foo) != bar ]]
200 unset -f foo bar
201 function bar
209 y=$x bar
764 print -r -- "$foo$bar"
768 print -r -- $(bar=bam f)
770 unset foo bar
772 [[ $(bar=hello g) == bam ]] || err_exit 'function exports not overridden'
872 function bar
879 bar
908 bar $LINENO "$1"
911 function bar
913 typeset xyz=bar
960 [[ $* == 'foo bar' ]] || err_exit "args are '$*', not 'foo bar'"
979 . $tmp/debug foo bar
990 bar() { caller;}
991 set -- $(bar)
993 ( $SHELL -c ' function foo { typeset x=$1;print $1;};z=();z=($(foo bar)) ') 2> /dev/null || err_exit 'using a function to set an array in a command sub fails'
1033 function bar
1039 bar
1057 unset -f foo foobar bar
1062 function bar
1068 bar
1074 unset -f foo bar
1077 [[ $(typeset +f) == *bar* ]] && err_exit 'function in subshell leaving side effects of function bar after reload'
1080 typeset -A bar
1083 typeset -i bar[$1].x
1084 bar[$1].x=5
1087 [[ ${!bar[@]} == sub ]] || err_exit 'scoping problem with compound array variables'
1106 typeset bar=abc
1107 unset bar
1108 # [[ $bar == bam ]] || err_exit 'unsetting local variable does not expose global variable'
1109 [[ $bar ]] && err_exit 'unsetting local variable exposes global variable'
1111 bar=bam