[Koha-bugs] [Bug 26658] Shebangs are wrong in bin/intranet and bin/opac
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 13 01:04:01 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26658
--- Comment #7 from David Cook <dcook at prosentient.com.au> ---
(In reply to David Cook from comment #4)
> Agreed. I think that the env version allows for more flexibility and power,
> but I think that we should keep the shebangs consistent in Koha. (Otherwise,
> we might start up some Perl code using /opt/perl-new/bin/perl, which then
> invokes other code using /usr/bin/perl.)
Actually, David, your concern might be unfounded.
Based on the following:
https://metacpan.org/release/Plack/source/lib/Plack/App/CGIBin.pm
https://metacpan.org/release/Plack/source/lib/Plack/App/WrapCGI.pm
You can see that Perl files aren't invoked by the exec() function, and instead
are turned into anonymous functions via CGI::Compile. At a glance, it seems
like the shebang in a CGI script is irrelevant for Plack...
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list