Lines Matching defs:err_exit

20 function err_exit
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
40 then err_exit "'hello world' here doc not working"
45 cmp $f $g 2> /dev/null || err_exit "'hello world' quoted here doc not working"
49 cmp $f $g 2> /dev/null || err_exit "'hello world' tabbed here doc not working"
53 cmp $f $g 2> /dev/null || err_exit "'hello world' quoted tabbed here doc not working"
58 cmp $f $g 2> /dev/null || err_exit "'$x world' here doc not working"
62 cmp $f $g 2> /dev/null || err_exit "'$(print hello) world' here doc not working"
67 then err_exit "'hello world' here doc not working"
72 cmp $f $g 2> /dev/null || err_exit "unquoted here doc not working"
77 then err_exit "leading tabs stripped with <<!"
80 eval `echo 'cat <<x'` "|| err_exit "eval `echo 'cat <<x'` core dumps"
87 cmp /dev/null $g 2> /dev/null || err_exit "empty here doc not working"
94 then err_exit "here doc inside command sub not working"
101 then err_exit '${x:+${x}} not working in here document'
110 ' 2> /dev/null || err_exit '100 empty here docs fails'
121 $SHELL "$f" > /dev/null || err_exit "large here-doc with command substitution fails"
126 [[ "$x" == "$0" ]] || err_exit '$0 not correct inside here documents'
129 EOF)' 2> /dev/null || err_exit 'here-doc cannot be terminated by )'
133 then err_exit '$IFS unset by command substitution in here docs'
136 then [[ $x == 'hello world' ]] || err_exit '<<< documents not working'
138 [[ $x == 'hello world' ]] || err_exit '<<< documents with $x not working'
140 [[ $x == 'hello world' ]] || err_exit '<<< documents with $x not working'
141 else err_exit '<<< syntax not supported'
147 then err_exit 'comments not preserved in here-documents'
177 then err_exit 'here document descritor was closed'
210 then err_exit 'here document with stdin closed failed'
213 [[ $($SHELL "$f") == $'hello\n\tworld' ]] || err_exit "<<# not working for quoted here documents"
215 [[ $($SHELL "$f") == $'hello\n\tworld' ]] || err_exit "<<# not working for non-quoted here documents"
227 ) == 1234 ]] 2> /dev/null || err_exit 'here document with get discipline failed'
231 ' 2> /dev/null) == ok ]] || err_exit '${ command;} not working in heredoc'
247 [[ $($SHELL $script) == hello ]] 2> /dev/null || err_exit 'heredoc embeded in command substitution fails at buffer boundary'
253 [[ $got == abc ]] || err_exit 'line continuation at start of buffer not working'