This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
592bc5c
)
Revert "Respect hashbangs containing perl6"
author
Leon Timmermans
<fawaka@gmail.com>
Sun, 17 Jul 2016 14:54:19 +0000
(16:54 +0200)
committer
Sawyer X
<xsawyerx@cpan.org>
Mon, 20 Mar 2017 18:43:53 +0000
(19:43 +0100)
This reverts commit
d9fc04eebe29b8cf5f6f6bf31373b202eafa44d6
.
As discussed in
http://www.nntp.perl.org/group/perl.perl5.porters/2016/05/msg236423.html,
the current perl6-shebang code has rather sharp edge-cases. Hence a revert
until we come up with a better solution seems wise.
(cherry picked from commit
f691e4455dd520eff11e7f070a9b034b0fa5ca1c
)
toke.c
patch
|
blob
|
blame
|
history
diff --git
a/toke.c
b/toke.c
index
cf3163e
..
ee18153
100644
(file)
--- a/
toke.c
+++ b/
toke.c
@@
-5396,8
+5396,6
@@
Perl_yylex(pTHX)
d = instr(s,"perl -");
if (!d) {
d = instr(s,"perl");
- if (d && d[4] == '6')
- d = NULL;
#if defined(DOSISH)
/* avoid getting into infinite loops when shebang
* line contains "Perl" rather than "perl" */