Thread (8 messages) flat view 8 messages, 3 authors, 2016-06-15

Re: [PATCH] perl shebangs: Use /usr/bin/env, not /usr/bin/perl

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2016-06-15 22:48:50

On Fri, May 21, 2010 at 15:15, Peter Kjellerstedt
[off-list ref] wrote:
This does not work. You cannot give arguments to an application
started via /usr/bin/env; it will interprete everything after
/usr/bin/env as the application name and fail with:
Doh'oh. You're right of course. I just tested it on the command-line
and by executing the scripts (Perl interprets the shebang itself):

    $ /usr/bin/env perl -w -le 'print $^W'
    1

However. Isn't Perl 5.6 the lowest version Git aspires to be
compatible with anyway? If that's the case they can just be changed to
'use warnings' across the board.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help