Lines Matching refs:err_exit
20 function err_exit
26 alias err_exit='err_exit $LINENO'
32 then err_exit "single quotes not the same as double quotes"
36 then err_exit "$x not the same as 'hi there'"
39 then err_exit "$x not the same as \"hi there \""
42 then err_exit " \\ differs from '' "
45 then err_exit " \"\" differs from '' "
48 then err_exit "\$(print -r - '') differs from ''"
51 then err_exit "\$(print -r - '') differs from ''"
54 then err_exit "\"\$(print -r - '')\" differs from ''"
57 then err_exit "\"\$(print -r - "")\" differs from ''"
60 then err_exit "nested \$(print -r - '') differs from ''"
63 then err_exit "\"nested \$(print -r - '')\" differs from ''"
66 then err_exit "nested \"\$(print -r - '')\" differs from ''"
70 then err_exit "\${x-\$(print -r - '')} differs from ''"
73 then err_exit "\${x-\$(print -r - '}')} differs from ''"
77 then err_exit "((cmd)|(cmd)) failed"
81 then err_exit "nested double quotes failed"
86 then err_exit '${z="a{b}c"} not correct'
91 then err_exit '"${z="a{b}c"}" not correct'
94 then err_exit '$(print -r -- "a\*b") differs from a\*b'
98 then err_exit '$(print -r -- "a\*b$x") differs from a\*b'
103 then err_exit '${x+foo bar bam} does not yield three arguments'
107 then err_exit '${x+foo "bar bam"} does not yield two arguments'
111 then err_exit '${x+foo '\''bar bam'\''} does not yield two arguments'
115 then err_exit '${x+foo $x bam} does not yield three arguments'
119 then err_exit '${x+foo "$x" bam} does not yield three arguments'
123 then err_exit '${x+"foo $x bam"} does not yield one argument'
127 then err_exit '"${x+foo $x bam}" does not yield one argument'
131 then err_exit '${x+foo "$x "bam} does not yield two arguments'
135 then err_exit '$'"' inside double quotes not working"
139 then err_exit '$'"' inside `` quotes not working"
146 then err_exit 'line continuation in double strings not working'
152 then err_exit 'line continuation in expanded double strings not working'
156 then err_exit 'x="\\*";$x != \*'
159 then err_exit '(print -r -- "\}"' not working
162 then err_exit 'print -r -- "\{"' not working
167 then err_exit '`eval print \\${foo$x}`' not working
170 then err_exit '"`eval print \\${foo$x}`"' not working
173 then err_exit '$() not working'
178 then err_exit 'IFS not working correctly with command substitution'
180 $SHELL -n 2> /dev/null << \! || err_exit '$(...) bug with ( in comment'
189 do eval [[ '$('print -r -- \'$i\'\$x')' != "'$i'" ]] && err_exit "quoting of $i\$x with $j enabled failed"
190 eval [[ '$('print -r -- \'$i\'\${x%*}')' != "'$i'" ]] && err_exit "quoting of $i\${x%*} with $j enabled failed"
192 then eval [[ '$('print -r -- \'$i\'\${x:-*}')' != "'$i''*'" ]] && err_exit "quoting of $i\${x:-*} with $j enabled failed"
198 [[ "$" == '$' ]] || err_exit '"$" != $'
199 [[ "${foo}$" == 'foo$' ]] || err_exit 'foo=foo;"${foo}$" != foo$'
200 [[ "${foo}${foo}$" == 'foofoo$' ]] || err_exit 'foo=foo;"${foo}${foo}$" != foofoo$'
202 [[ "$foo" == ~(Elr)(\\\$|#)\ ]] || err_exit $'\'$ \' not matching RE \\\\\\$|#\''
203 [[ "$foo" == ~(Elr)('\$'|#)\ ]] || err_exit $'\'$ \' not matching RE \'\\$\'|#\''
205 [[ "$foo" == ~(Elr)(\\\$|#)\ ]] || err_exit $'\'# \' not matching RE \\'\$|#\''
206 [[ "$foo" == ~(Elr)('\$'|#)\ ]] || err_exit $'\'# \' not matching RE \'\\$\'|#\''
207 [[ '\$' == '\$'* ]] || err_exit $'\'\\$\' not matching \'\\$\'*'
208 [[ a+a == ~(E)a\+a ]] || err_exit '~(E)a\+a not matching a+a'
209 [[ a+a =~ a\+a ]] || err_exit 'RE a\+a not matching a+a'
213 [[ $got == "$exp" ]] || err_exit "\$'a\\0b'c expansion failed -- expected '$exp', got '$got'"