[erlang-bugs] escript man page

Bengt Kleberg <>
Wed Aug 27 07:22:59 CEST 2008


I would like to ask for one correction (and one clarification) on the
escript man page (as found here:

1 Correction.

The man page says:

If you know the location of the escript executable, the first line can
directly give the path to escript. For instance: 
#!/usr/local/bin/escript factorial        

That is not correct and should be

Reason: The factorial string after /usr/local/bin/escript is included in
the call to the factorial script and means that the script will always
usage: factorial integer

even when called like this:
./factorial 2

2 Clarification

I can not, on the man page, find the very important information (IMHO)
that when escript starts it has trap_exit set to true. That should be
added, please.


More information about the erlang-bugs mailing list