Lines Matching defs:bar
37 bar=bye
42 1) print -r - "$foo" "$bar";;
45 integer bar=10
46 print -r - "$foo" "$bar";;
68 if [[ $(bar=foo foobar 1) != '33 foo' ]]
71 if [[ $bar == foo ]]
121 print bar
129 if [[ $(foo) != bar ]]
188 print bar
190 if [[ $(foo) != bar ]]
197 unset -f foo bar
198 function bar
206 y=$x bar
761 print -r -- "$foo$bar"
765 print -r -- $(bar=bam f)
767 unset foo bar
769 [[ $(bar=hello g) == bam ]] || err_exit 'function exports not overridden'
869 function bar
876 bar
905 bar $LINENO "$1"
908 function bar
910 typeset xyz=bar
957 [[ $* == 'foo bar' ]] || err_exit "args are '$*', not 'foo bar'"
976 . $tmp/debug foo bar
987 bar() { caller;}
988 set -- $(bar)
990 ( $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'
1030 function bar
1036 bar
1049 unset -f foo foobar bar
1054 function bar
1060 bar
1066 unset -f foo bar
1069 [[ $(typeset +f) == *bar* ]] && err_exit 'function in subshell leaving side effects of function bar after reload'
1072 typeset -A bar
1075 typeset -i bar[$1].x
1076 bar[$1].x=5
1079 [[ ${!bar[@]} == sub ]] || err_exit 'scoping problem with compound array variables'