[erlang-patches] escript does not parse supplied vm args on Windows

Dave Cottlehuber <>
Wed Nov 28 13:13:55 CET 2012


On 28 November 2012 09:57, Håkan Mattsson <> wrote:
> If you want to extend the escript syntax it does not suffice to
> just fix escript.c. Besides documentation and test suites, you
> need to fix ALL code that is dependent of the escript syntax,
> such as the functions escript:create/2 and escript:extract/2.
>
> /Håkan

Hi Håkan

I'm not extending escript syntax, just ensuring that the functionality
of parsing vm args is consistent across platforms as implied in the
documentation. In fact the code is much more constrained, and the vm
args will only be read if the first line matches /^#!/. Clearly
Windows will not accept a script that has #! as the first line, it's
not valid syntax.

The documentation has been amended as you suggest,
https://gist.github.com/4189389ecd2bf1ca8163 thanks for the prompting.
I don't think escript:create and extract need to be altered in this
case.

A+
Dave


More information about the erlang-patches mailing list