summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2015-03-05 17:37:33 +0100
committerRafael Garcia-Suarez <rgs@consttype.org>2015-03-05 17:37:33 +0100
commit0f6f92e0b139f81313e47d8eb6d0c323dfd77b62 (patch)
tree97fb1dbf08c6bdae349c39402b8c0f2554958cf6 /op.c
parent2b5060aeb95612aea17de446e9d72793e28bf8a9 (diff)
downloadperl-0f6f92e0b139f81313e47d8eb6d0c323dfd77b62.tar.gz
readline should behave as <>, not <<>>
This fixes bug #123990. The cause was that one promotion to OP_READLINE was not cleaning the special flag on that op.
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index 9ddfb9b8e3..bbf6a8d4a0 100644
--- a/op.c
+++ b/op.c
@@ -10334,7 +10334,7 @@ Perl_ck_readline(pTHX_ OP *o)
}
else {
OP * const newop
- = newUNOP(OP_READLINE, o->op_flags | OPf_SPECIAL, newGVOP(OP_GV, 0, PL_argvgv));
+ = newUNOP(OP_READLINE, 0, newGVOP(OP_GV, 0, PL_argvgv));
op_free(o);
return newop;
}