Lines Matching refs:foo

36 integer foo=33
42 1) print -r - "$foo" "$bar";;
44 3) typeset foo=foo
46 print -r - "$foo" "$bar";;
47 4) trap 'foo=36' EXIT
48 typeset foo=20;;
68 if [[ $(bar=foo foobar 1) != '33 foo' ]]
71 if [[ $bar == foo ]]
75 if [[ $(foobar 3) != 'foo 10' ]]
80 if [[ $foo != 36 ]]
114 unset -f foo
115 function foo
129 if [[ $(foo) != bar ]]
152 function foo
156 foo
181 function foo
186 function foo
190 if [[ $(foo) != bar ]]
194 if [[ $(foo) != hello ]]
197 unset -f foo bar
203 function foo
209 if [[ $(foo) != 3 ]]
216 print foo
222 if [[ $(foobar 2>/dev/null) != foo ]]
346 function foo
351 if [[ $(foo)$(foo) != ABCABC ]]
761 print -r -- "$foo$bar"
767 unset foo bar
768 [[ $(foo=hello g) == hellobam ]] || err_exit 'function exports not passed on'
770 unset -f foo
771 function foo
786 [[ $(foo 'NUMBERED RECORDSIZE') == ok ]] || err_exit 'optimization error with undefined variable'
873 function foo
879 foo
901 function foo
903 typeset xyz=foo
917 foo $LINENO
957 [[ $* == 'foo bar' ]] || err_exit "args are '$*', not 'foo bar'"
976 . $tmp/debug foo 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'
1019 function foo
1026 foo
1032 print foo
1047 ) == foo ]] > /dev/null || err_exit 'functions compiled with shcomp not working'
1049 unset -f foo foobar bar
1053 cat > foo <<- \EOF
1058 function foo
1063 chmod +x foo
1064 : $(foo)
1065 [[ $(typeset +f) == *foo* ]] && err_exit 'function in subshell leaving side effect of function foo'
1066 unset -f foo bar
1067 : $(foo)
1068 [[ $(typeset +f) == *foo* ]] && err_exit 'function in subshell leaving side effects of function foo after reload'
1071 unset -f foo
1073 function foo
1078 foo sub