Browse files

Ensure current rebar builds a working joxa escript

When building the joxa shell with the most current version of rebar
(i.e., 1b52a597), the resulting escript does not work anymore.

This is because the Erlang emulator doesn't read from stdin anymore due
to the now default `escript_emu_args` options
"%%! -pa joxa/joxa/ebin -noshell -noinput" being passed to it by the

Explicitly setting the `escript_emu_args` in rebar.config to "%%!\n",
which is the default in the most recent rebar release 2.0.0 and also
the default according to the current documentation in the rebar wiki
(, fixes that issue.

Signed-off-by: Eric Merritt <>
  • Loading branch information...
1 parent 7957b28 commit 1ad14e69117469147d33ddab52973cf1b015e65f @KlausTrainer KlausTrainer committed with Sep 25, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 rebar.config
@@ -17,4 +17,6 @@
[erlware_commons, getopt]}.
+{escript_emu_args, "%%!\n"}.
{post_hooks, [{compile, "make jxa"}]}.

0 comments on commit 1ad14e6

Please sign in to comment.