Lines Matching refs:foo

87 print hi > .foo
105 if (command > foo\\abc) 2> /dev/null
106 then set -- foo*
107 if [[ $1 != 'foo\abc' ]]
108 then err_exit 'foo* does not match foo\abc'
126 bar=foo
127 eval foo=\$bar
128 if [[ $foo != foo ]]
129 then err_exit 'eval foo=\$bar not working'
131 bar='foo=foo\ bar'
133 if [[ $foo != 'foo bar' ]]
134 then err_exit 'eval foo=\$bar, with bar="foo\ bar" not working'
151 print foo
155 if [[ $( < $tmp/foobar) != $'foo\nbar\nbam' ]]
159 print foo
164 if [[ $($tmp/foobar) != $'foo\nbar\nbam' ]]
167 if [[ $($tmp/foobar | /bin/cat) != $'foo\nbar\nbam' ]]
170 if [[ $( $tmp/foobar) != $'foo\nbar\nbam' ]]
174 x=$( (print foo) ; (print bar) )
175 if [[ $x != $'foo\nbar' ]]
176 then err_exit " ( (print foo);(print bar ) failed"
178 x=$( (/bin/echo foo) ; (print bar) )
179 if [[ $x != $'foo\nbar' ]]
182 x=$( (/bin/echo foo) ; (/bin/echo bar) )
183 if [[ $x != $'foo\nbar' ]]
218 x=$( (/bin/echo foo) 2> /dev/null )
219 if [[ $x != foo ]]
269 word=$(print $'foo\nbar' | { read line; /bin/cat;})
273 word=$(print $'foo\nbar' | ( read line; /bin/cat) )
280 if [[ $(for i in foo bar
283 done) != $'foo\nbar' ]]
289 set -A a1 foo bar bam
310 foo()
315 foo
320 [[ $($SHELL -c 'o=foobar; for x in foo bar; do (o=save);print $o;done' 2> /dev/null ) == $'foobar\nfoobar' ]] || err_exit 'for loop optimization subshell bug'
323 then [[ $($SHELL -c 'cat <(print foo)' 2> /dev/null) == foo ]] || err_exit 'process substitution not working'
348 [[ $($SHELL -c "print foo | $tmp/scriptx ;:" 2> /dev/null ) == foo ]] || err_exit 'piping into script fails'
357 print 'print foo "$@"' > $tmp/scriptx
358 [[ $( print "($tmp/scriptx bar)" | $SHELL 2>/dev/null) == 'foo bar' ]] || err_exit 'script pipe to shell fails'
370 ( typeset -r foo=bar) 2> /dev/null || err_exit 'readonly variables set in a subshell cannot unset'
399 print foo
404 unset foo
405 [[ ! ${foo[@]} ]] || err_exit '${foo[@]} is not empty when foo is unset'
406 [[ ! ${foo[3]} ]] || err_exit '${foo[3]} is not empty when foo is unset'
407 [[ $(print "[${ print foo }]") == '[foo]' ]] || err_exit '${...} not working when } is followed by ]'
408 [[ $(print "${ print "[${ print foo }]" }") == '[foo]' ]] || err_exit 'nested ${...} not working when } is followed by ]'
409 unset foo
410 foo=$(false) > /dev/null && err_exit 'failed command substitution with redirection not returning false'
466 ( $SHELL -c 'trap : DEBUG; x=( $foo); exit 0') 2> /dev/null || err_exit 'trap DEBUG fails'
472 do print foo