Skip to content

Commit

Permalink
OTP-8427 Removed spurious options to the emulator from escript.
Browse files Browse the repository at this point in the history
  • Loading branch information
Håkan Mattsson authored and Erlang/OTP committed Feb 9, 2010
1 parent 6c5822f commit c03fd1f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions erts/etc/common/escript.c
Expand Up @@ -375,11 +375,10 @@ main(int argc, char** argv)
if (strcmp(basename, "escript") == 0) {
#endif
/*
* Push all options (without the hyphen) before the script name.
* Locate all options before the script name.
*/

while (argc > 1 && argv[1][0] == '-') {
PUSH(argv[1]+1);
argc--;
argv++;
last_opt = argv;
Expand Down Expand Up @@ -421,7 +420,7 @@ main(int argc, char** argv)
PUSH3("-run", "escript", "start");

/*
* Push all options (without the hyphen) before the script name.
* Push all options before the script name. But omit the leading hyphens.
*/

while (first_opt != last_opt) {
Expand Down

0 comments on commit c03fd1f

Please sign in to comment.