Lines Matching refs:err_exit
20 function err_exit
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
36 [[ $x == ~root ]] || err_exit '~user expanded in subshell prevent ~user from working'
52 then err_exit '~' not $HOME
56 then err_exit x=~ not $HOME
60 then err_exit x=x:~ not x:$HOME
63 then err_exit '~' not $PWD
67 then err_exit x=~+ not $PWD
70 then err_exit '~' not $PWD
74 then err_exit x=~- not $OLDPWD
79 then [[ ~$u -ef $h ]] || err_exit "~$u not $h"
87 then err_exit "x=~g.r.emlin failed -- expected '~g.r.emlin', got '$x'"
91 then err_exit "x=~:~ failed, expected '$HOME:$HOME', got '$x'"
94 [[ ~ == / ]] || err_exit '~ should be /'
95 [[ ~/foo == /foo ]] || err_exit '~/foo should be /foo when ~==/'
99 [[ $($tmp/tilde foo) == "$PWD$nl$PWD" ]] 2> /dev/null || err_exit 'tilde fails inside a script run by name'