terminate -s switch processing only on C<-->, not on C<--foo>
Gurusamy Sarathy [Mon, 10 Jan 2000 05:06:16 +0000 (05:06 +0000)]
p4raw-id: //depot/perl@4779

perl.c

diff --git a/perl.c b/perl.c
index 7005e2a..d7239e8 100644 (file)
--- a/perl.c
+++ b/perl.c
@@ -2827,7 +2827,7 @@ S_init_postdump_symbols(pTHX_ register int argc, register char **argv, register
        for (; argc > 0 && **argv == '-'; argc--,argv++) {
            if (!argv[0][1])
                break;
-           if (argv[0][1] == '-') {
+           if (argv[0][1] == '-' && !argv[0][2]) {
                argc--,argv++;
                break;
            }