Skip to content

Batch processing returns with success (0), even when there is an error. #750

Description

@c-kloukinas

Trying to use abcl in github actions (to test porting coalton to it).
Whenever it breaks, it still exits with a 0 (success), instead of with a 1 (error), that other lisps exit with.

Example:

cat > bug.lisp << EOF
(print x)
EOF
abcl --batch --load bug.lisp < /dev/null
echo $?
# returns 0

Other lisps that I've tried return 1 or at least a non-zero value:

sbcl --script bug.lisp ; echo $?
# 1
clasp --script bug.lisp ; echo $?
# 1
ecl --shell bug.lisp ; echo $?
# 1
ccl --batch --load bug.lisp ; echo $?
# 255
alisp --batch -L bug.lisp ; echo $?
# 255

Note: Returning a stack trace in such cases would be helpful for debugging.

Shouldn't --batch imply no REPL by the way?
Or at least, have an option to turn the REPL off?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions