summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2001-02-17 20:11:35 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-02-18 16:58:58 +0000
commit4ea8f8fb25afd51f8653b84174abb95c1382d5ec (patch)
tree7bc9064592081e3fba6c0166271715a40a6f2bb2 /perl.c
parent5d9a640495c9fba008f523d6f54b66106ead4d0f (diff)
downloadperl-4ea8f8fb25afd51f8653b84174abb95c1382d5ec.tar.gz
Fixing PERL5OPT (was Re: Warnings, strict, and CPAN)
Message-ID: <20010218011135.A19957@magnonel.guild.net> Revive mjd's and Simon's PERL5OPT fix. p4raw-id: //depot/perl@8822
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 8d8dc1fe20..7dc4902502 100644
--- a/perl.c
+++ b/perl.c
@@ -1173,6 +1173,7 @@ print \" \\@INC:\\n @INC\\n\";");
PL_tainting = TRUE;
else {
while (s && *s) {
+ char *d;
while (isSPACE(*s))
s++;
if (*s == '-') {
@@ -1180,11 +1181,18 @@ print \" \\@INC:\\n @INC\\n\";");
if (isSPACE(*s))
continue;
}
+ d = s;
if (!*s)
break;
if (!strchr("DIMUdmw", *s))
Perl_croak(aTHX_ "Illegal switch in PERL5OPT: -%c", *s);
- s = moreswitches(s);
+ while (++s && *s) {
+ if (isSPACE(*s)) {
+ *s++ = '\0';
+ break;
+ }
+ }
+ moreswitches(d);
}
}
}