Feature run-sbcl.sh/rlwrap interaction

Bug #1249183 reported by William Cushing on 2013-11-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

  SBCL_HOME="$BASE/obj/sbcl-home" "$BASE"/src/runtime/sbcl $ARGUMENTS "$@"
  SBCL_HOME="$BASE/obj/sbcl-home" exec "$BASE"/src/runtime/sbcl $ARGUMENTS "$@"

will make the script ("~/bin/sbcl"):

exec rlwrap -Csbcl run-sbcl $@

work as expected. Otherwise none of the line-editing functionality works correctly.

Both execs are necessary for rlwrap to not get confused about which process is in control of the terminal. That the scripts don't work without the execs can't be tested from the command line (at least, not from the bash command line); from the command line, "rlwrap run-sbcl.sh" works just fine.

With the change, invoking rlwrap from either a command line or from a script works correctly.


SBCL 1.1.13

Linux ubuntu 3.5.0-40-generic #62-Ubuntu SMP Thu Aug 22 00:55:19 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux



Paul Khuong (pvk) wrote :

Thank you! Committed as 6574cbf (Tail call (exec) at the end of run-sbcl.sh).

Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments