summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-10 05:06:16 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-10 05:06:16 +0000
commit379d538a0768daddd61d1562735044de8d7dad6f (patch)
treef72dc2e35ec539c96e8107794fdc48634560bbc4 /perl.c
parentff42dc34466c8b7bbb2a617e236c88a26a35aa12 (diff)
downloadperl-379d538a0768daddd61d1562735044de8d7dad6f.tar.gz
terminate -s switch processing only on C<-->, not on C<--foo>
p4raw-id: //depot/perl@4779
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 7005e2a47e..d7239e8649 100644
--- 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;
}