Hi,

David Fang <[EMAIL PROTECTED]> writes:

>       Is there a way to force guile to exit upon first error (uncaught
> dynwind), analogous to "sh -e"?  Though this isn't something one would
> want interactively, it might be useful for non-interactive scripts to bail
> out as soon as something goes wrong, rather than continue generating
> errors.  Thanks in advance.

AFAIK, the only way to achieve this is by calling `exit':

  $ guile -c '(exit (begin #f))' ; echo $?
  1

It converts `#f' to a non-zero exit value and anything else to zero.

Hope this helps,
Ludovic.


_______________________________________________
Guile-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-user

Reply via email to