[erlang-questions] Escript

Bengt Kleberg bengt.kleberg@REDACTED
Fri Mar 30 15:29:47 CEST 2007

On 2007-03-28 15:52, Bjorn Gustavsson wrote:
> escript is included in R11B-4.

it it possible to get the name of the script when using escript?

i notice that the escript that is included in R11B-4 does not have the 
script itself as the first argument (like a $0 is a shell script). ex:
#! /tmp/erlang/bin/escript

main( Arg ) ->
         io:fwrite( "~w~n", [Arg] ).

i made a patch for joe's escript-4.1 that made the script name 
available, but escript.erl in R11B-4 does not look like it was made from 

Those were the days...
    EPO guidelines 1978: "If the contribution to the known art resides
    solely in a computer program then the subject matter is not
    patentable in whatever manner it may be presented in the claims."

More information about the erlang-questions mailing list