Lines Matching refs:foo
74 x=$((echo foo)|(cat))
75 if [[ $x != foo ]]
100 set -- ${x+foo bar bam}
102 then err_exit '${x+foo bar bam} does not yield three arguments'
104 set -- ${x+foo "bar bam"}
106 then err_exit '${x+foo "bar bam"} does not yield two arguments'
108 set -- ${x+foo 'bar bam'}
110 then err_exit '${x+foo '\''bar bam'\''} does not yield two arguments'
112 set -- ${x+foo $x bam}
114 then err_exit '${x+foo $x bam} does not yield three arguments'
116 set -- ${x+foo "$x" bam}
118 then err_exit '${x+foo "$x" bam} does not yield three arguments'
120 set -- ${x+"foo $x bam"}
122 then err_exit '${x+"foo $x bam"} does not yield one argument'
124 set -- "${x+foo $x bam}"
126 then err_exit '"${x+foo $x bam}" does not yield one argument'
128 set -- ${x+foo "$x "bam}
130 then err_exit '${x+foo "$x "bam} does not yield two arguments'
187 set -- $(/bin/echo foo;sleep 1;/bin/echo bar)
213 foo=bar
214 bar=$(print -r -- ${foo+\\n\ })
216 then err_exit '${foo+\\n\ } expansion error'
219 bar=$(print -r -- ${foo+\\n\ $bar})
221 then err_exit '${foo+\\n\ $bar} expansion error with bar unset'
244 if [[ $(print -r $'foo\n\n\n') != foo ]]
261 foo=yes
262 if [[ $(print -r -- {\$foo}) != '{$foo}' ]]
263 then err_exit '{\$foo}' not expanded correctly
265 [[ foo == $(
304 print foo) ]] || err_exit "command subsitution with long comments broken"
324 string='&foo'
325 [[ ${subject/${re}/${string}} != '&foo' ]] && err_exit 'string replacement with $string not working with string=&foo'
326 [[ ${subject/${re}/"${string}"} != '&foo' ]] && err_exit 'string replacement with "$string" not working with string=&foo'
340 foo="`eval echo "$"{copy$copynum"-0}"`"
341 [[ $foo == "$copy1" ]] || err_exit '$"..." not being ignored inside ``'
344 [[ $($SHELL -c 'set -- ${1+"$@"}; print $#' cmd foo '') == 2 ]] || err_exit '${1+"$@"} with one non-empty and on empty argument fails'
349 [[ $($SHELL -c 'set -- "$@"; print $#' cmd foo '') == 2 ]] || err_exit '"$@" with one non-empty and on empty argument fails'
357 args=(foo '')