From c03fd1f9ce3febe540cb6351d04a250c717001ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kan=20Mattsson?= Date: Tue, 9 Feb 2010 13:26:01 +0000 Subject: OTP-8427 Removed spurious options to the emulator from escript. --- erts/etc/common/escript.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'erts/etc/common/escript.c') diff --git a/erts/etc/common/escript.c b/erts/etc/common/escript.c index 3dc9fe1605..1bc5eb7651 100644 --- a/erts/etc/common/escript.c +++ b/erts/etc/common/escript.c @@ -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; @@ -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) { -- cgit v1.2.3