Lines Matching refs:foo

30 base=/home/dgk/foo//bar
92 if [[ "${string1#@(*/bar|*/foo)}" != //bar/abcabcabc ]]
93 then err_exit "string1#@(*/bar|*/foo)"
95 if [[ ${string1##@(*/bar|*/foo)} != /abcabcabc ]]
96 then err_exit "string1##@(*/bar|*/foo)"
98 if [[ ${string1##*/@(bar|foo)} != /abcabcabc ]]
99 then err_exit "string1##*/@(bar|foo)"
101 foo=abc
102 if [[ ${foo#a[b*} != abc ]]
105 if [[ ${foo//[0-9]/bar} != abc ]]
106 then err_exit '${foo//[0-9]/bar} not expanding correctly'
108 foo='(abc)'
109 if [[ ${foo#'('} != 'abc)' ]]
112 if [[ ${foo%')'} != '(abc' ]]
115 foo=a123b456c
116 if [[ ${foo/[0-9]?/""} != a3b456c ]]
117 then err_exit '${foo/[0-9]?/""} not expanding correctly'
119 if [[ ${foo//[0-9]/""} != abc ]]
120 then err_exit '${foo//[0-9]/""} not expanding correctly'
122 if [[ ${foo/#a/b} != b123b456c ]]
123 then err_exit '${foo/#a/b} not expanding correctly'
125 if [[ ${foo/#?/b} != b123b456c ]]
126 then err_exit '${foo/#?/b} not expanding correctly'
128 if [[ ${foo/%c/b} != a123b456b ]]
129 then err_exit '${foo/%c/b} not expanding correctly'
131 if [[ ${foo/%?/b} != a123b456b ]]
132 then err_exit '${foo/%?/b} not expanding correctly'
154 !(*.o) foo.o 0
155 !(*.o) foo.c 1
184 unset foo
185 foo=one/two/three
186 if [[ ${foo//'/'/_} != one_two_three ]]
189 if [[ ${foo//"/"/_} != one_two_three ]]
192 if [[ ${foo//\//_} != one_two_three ]]
239 set -- foo/bar bam/yes last/file/done
246 var=(foo/bar bam/yes last/file/done)
263 foo='foo+bar+'
264 [[ $(print -r -- ${foo//+/'|'}) != 'foo|bar|' ]] && err_exit "\${foobar//+/'|'}"
265 [[ $(print -r -- ${foo//+/"|"}) != 'foo|bar|' ]] && err_exit '${foobar//+/"|"}'
266 [[ $(print -r -- "${foo//+/'|'}") != 'foo|bar|' ]] && err_exit '"${foobar//+/'"'|'"'}"'
267 [[ $(print -r -- "${foo//+/"|"}") != 'foo|bar|' ]] && err_exit '"${foobar//+/"|"}"'
281 unset foo
282 foo='(win32.i386) '
283 [[ ${foo/'('/'(x11-'} == '(x11-win32.i386) ' ]] || err_exit "\${var/pattern} not working with ' in pattern"
295 x=foo
508 string='foo(d:\nt\box\something)bar'