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; }
47 then err_exit '~' not $HOME
51 then err_exit x=~ not $HOME
55 then err_exit x=x:~ not x:$HOME
58 then err_exit '~' not $PWD
62 then err_exit x=~+ not $PWD
65 then err_exit '~' not $PWD
69 then err_exit x=~- not $OLDPWD
74 then [[ ~$u -ef $h ]] || err_exit "~$u not $h"
82 then err_exit "x=~g.r.emlin failed -- expected '~g.r.emlin', got '$x'"
86 then err_exit "x=~:~ failed, expected '$HOME:$HOME', got '$x'"
89 [[ ~ == / ]] || err_exit '~ should be /'
90 [[ ~/foo == /foo ]] || err_exit '~/foo should be /foo when ~==/'
94 [[ $($tmp/tilde foo) == "$PWD$nl$PWD" ]] 2> /dev/null || err_exit 'tilde fails inside a script run by name'