[erlang-bugs] escript man page
Wed Aug 27 17:14:39 CEST 2008
On Wed, Aug 27, 2008 at 7:22 AM, Bengt Kleberg
> 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
> 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)?
Björn Gustavsson, Erlang/OTP, Ericsson AB
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-bugs