Hi,
ledit does not propagate the exit code from the invoked process:
$ ledit ocaml
OCaml version 4.14.0
Enter #help;; for help.
# exit 1;;
$ echo $?
0
This behavior is different from the behavior of another line editing tool rlwrap:
$ rlwrap ocaml
OCaml version 4.14.0
Enter #help;; for help.
exit 1;;
$ echo $?
1
I think it would be nice if there is a commandline option in ledit that propagates the exit code of the process that was called. :)