summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2001-11-09 15:32:28 +0100
committerAbhijit Menon-Sen <ams@wiw.org>2001-11-09 13:40:26 +0000
commitebce537753650facaea149579c73b75298d1fc2e (patch)
treeb780dc18c005aac0c9829c2fed5450f8c43aefd9 /perl.c
parent213329dd3d3cdcddf6cc727a9d45053e2788898b (diff)
downloadperl-ebce537753650facaea149579c73b75298d1fc2e.tar.gz
#!perl -F...
Message-Id: <20011109143228.A18996@rafael> p4raw-id: //depot/perl@12912
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl.c b/perl.c
index 292b56b3ec..2c16f9139b 100644
--- a/perl.c
+++ b/perl.c
@@ -2189,8 +2189,10 @@ Perl_moreswitches(pTHX_ char *s)
return s;
case 'F':
PL_minus_F = TRUE;
- PL_splitstr = savepv(s + 1);
- s += strlen(s);
+ PL_splitstr = ++s;
+ while (*s && !isSPACE(*s)) ++s;
+ *s = '\0';
+ PL_splitstr = savepv(PL_splitstr);
return s;
case 'a':
PL_minus_a = TRUE;