Lines Matching refs:foo

74 x=$((echo foo)|(cat))
75 if [[ $x != foo ]]
99 set -- ${x+foo bar bam}
101 then err_exit '${x+foo bar bam} does not yield three arguments'
103 set -- ${x+foo "bar bam"}
105 then err_exit '${x+foo "bar bam"} does not yield two arguments'
107 set -- ${x+foo 'bar bam'}
109 then err_exit '${x+foo '\''bar bam'\''} does not yield two arguments'
111 set -- ${x+foo $x bam}
113 then err_exit '${x+foo $x bam} does not yield three arguments'
115 set -- ${x+foo "$x" bam}
117 then err_exit '${x+foo "$x" bam} does not yield three arguments'
119 set -- ${x+"foo $x bam"}
121 then err_exit '${x+"foo $x bam"} does not yield one argument'
123 set -- "${x+foo $x bam}"
125 then err_exit '"${x+foo $x bam}" does not yield one argument'
127 set -- ${x+foo "$x "bam}
129 then err_exit '${x+foo "$x "bam} does not yield two arguments'
186 set -- $(/bin/echo foo;sleep 1;/bin/echo bar)
212 foo=bar
213 bar=$(print -r -- ${foo+\\n\ })
215 then err_exit '${foo+\\n\ } expansion error'
218 bar=$(print -r -- ${foo+\\n\ $bar})
220 then err_exit '${foo+\\n\ $bar} expansion error with bar unset'
243 if [[ $(print -r $'foo\n\n\n') != foo ]]
260 foo=yes
261 if [[ $(print -r -- {\$foo}) != '{$foo}' ]]
262 then err_exit '{\$foo}' not expanded correctly
264 [[ foo == $(
303 print foo) ]] || err_exit "command subsitution with long comments broken"
323 string='&foo'
324 [[ ${subject/${re}/${string}} != '&foo' ]] && err_exit 'string replacement with $string not working with string=&foo'
325 [[ ${subject/${re}/"${string}"} != '&foo' ]] && err_exit 'string replacement with "$string" not working with string=&foo'
339 foo="`eval echo "$"{copy$copynum"-0}"`"
340 [[ $foo == "$copy1" ]] || err_exit '$"..." not being ignored inside ``'