From: Bruno H. <ha...@il...> - 2000-08-04 21:45:22
|
Sam writes: > I noticed the following: > $ clisp -q -norc -x '(error)' > > *** - EVAL: too few arguments given to ERROR: (ERROR) > $ echo $? > 0 > $ > > shouldn't it be 1? > I mean, when the `-x' args raise an exception, shouldn't this be an > error? The current implementation gives an exit code of 1 if an -l (load) or -c (compile-file) option fails. But for the error handling of your own forms you are responsible yourself. The macro lisp:exit-on-error is documented; you can use it. If the -x form were wrapped inside a lisp:exit-on-error call by default, people who wish a different error behaviour would have a hard time to achieve it. Btw, your without-floating-point-underflow patch was not correct. Please reinsert the PROGN. Bruno |