#2348 rlwrap crashes in emacs shell

open
nobody
3
2012-12-04
2012-01-28
John Lapeyre
No

running rmaxima in an emacs shell gives
rlwrap: Oops, crashed (caught SIGFPE) - this should not have happened!
A web search shows that it seems this is not specific to maxima.
One workaround is to add this to the rmaxima script

if [ $TERM = "dumb" ]; then
exec maxima "$@"
fi

This should catch many cases, but I believe the TERM variable could be different as well, eg. "emacs".

If you have several builds with different lisps, fixing this can slow the proliferation maxima scripts with different prefixes.

Versions: rlwrap 0.37
Maxima 5.25.1 with gcl, acl, ccl, sbcl.
and stock debian maxima 5.24.0-1

Discussion

  • John Lapeyre
    John Lapeyre
    2012-01-28

    • priority: 5 --> 3