summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorPaul Marquess <paul.marquess@btinternet.com>1998-08-07 10:56:01 +0100
committerGurusamy Sarathy <gsar@cpan.org>1998-08-07 22:21:10 +0000
commit7dfe3f660cb120466e9c6f9f1b8b1c931d114062 (patch)
tree6c6f676a4516426fd786bf56537b550559ccf861 /perl.c
parent322422def5902825e69a6575c6ba0ca85b18ea34 (diff)
downloadperl-7dfe3f660cb120466e9c6f9f1b8b1c931d114062.tar.gz
Fix for command line use of source filters
Message-Id: <9808070856.AA28065@claudius.bfsec.bt.co.uk> p4raw-id: //depot/maint-5.005/perl@1754
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 26653a3a49..e76d83afdf 100644
--- a/perl.c
+++ b/perl.c
@@ -2971,8 +2971,10 @@ read_e_script(int idx, SV *buf_sv, int maxlen)
p = SvPVX(PL_e_script);
nl = strchr(p, '\n');
nl = (nl) ? nl+1 : SvEND(PL_e_script);
- if (nl-p == 0)
+ if (nl-p == 0) {
+ filter_del(read_e_script);
return 0;
+ }
sv_catpvn(buf_sv, p, nl-p);
sv_chop(PL_e_script, nl);
return 1;