summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorLeon Timmermans <fawaka@gmail.com>2016-07-17 16:54:19 +0200
committerSawyer X <xsawyerx@cpan.org>2017-03-20 19:43:53 +0100
commit26f55801b38140644601cc08c5842d13d35db407 (patch)
treeb63edf954971f34923312ae5cd265463151aef50 /toke.c
parent592bc5caf785af2d4ad1b96eea2abdfe04dfa2ea (diff)
downloadperl-26f55801b38140644601cc08c5842d13d35db407.tar.gz
Revert "Respect hashbangs containing perl6"
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)
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/toke.c b/toke.c
index cf3163ec20..ee18153e34 100644
--- 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" */