[erlang-patches] escript to accept emulator flags in scripts without shebang
Magnus Henoch
magnus@REDACTED
Tue Jan 8 19:50:27 CET 2013
The documentation for escript says that if the second or third line of
the script starts with %%!, the rest of the line will be used as
emulator arguments. However, currently this is only the case if the
first line starts with #!. I couldn't see any reason for that, so here
is a patch that removes this undocumented limitation.
git fetch git://github.com/legoscia/otp.git escript_emulator_flags_vs_shebang
https://github.com/legoscia/otp/compare/erlang:master...legoscia:escript_emulator_flags_vs_shebang
https://github.com/legoscia/otp/compare/erlang:master...legoscia:escript_emulator_flags_vs_shebang.patch
Regards,
Magnus
More information about the erlang-patches
mailing list