Please instruct erl to ignore shebangs.<div><br></div><div><div>$ cat hello.erl </div><div>#!/usr/bin/env escript</div><div><br></div><div>-module(hello).</div><div>-export([main/1]).</div><div><br></div><div>main(_) -> io:format("Hello World!~n", []).wonko:Desktop andrew$ ./hello.erl </div>
<div>Hello World!</div><div>wonko:Desktop andrew$ erl</div><div>Erlang R14B03 (erts-5.8.4) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]</div><div><br></div><div>Eshell V5.8.4 (abort with ^G)</div>
<div>1> c(hello).</div><div>./hello.erl:1: syntax error before: '#'</div><div>./hello.erl:4: no module definition</div><div>error</div><div><br></div>Cheers,<div><br></div><div>Andrew Pennebaker</div><div><a href="http://www.yellosoft.us/" target="_blank">www.yellosoft.us</a></div>
</div>