[erlang-bugs] escript man page

Bjorn Gustavsson <>
Wed Aug 27 17:14:39 CEST 2008


On Wed, Aug 27, 2008 at 7:22 AM, Bengt Kleberg
<>wrote:

> 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
>
> Thanks! It will be corrected in R12B-4.


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

That trap_exit is true is not intentional.

Maybe it would be better to change the implementation to set the trap_exit
flag to false instead
(to follow the principle of least surprise)?

/Bjorn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20080827/16082d28/attachment.html>


More information about the erlang-bugs mailing list