[erlang-bugs] escript man page

Bengt Kleberg bengt.kleberg@REDACTED
Wed Aug 27 07:22:59 CEST 2008


Greetings,

I would like to ask for one correction (and one clarification) on the
escript man page (as found here:
http://erlang.org/doc/man/escript.html).

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
#!/usr/local/bin/escript

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
say:
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.


bengt




More information about the erlang-bugs mailing list