Re: [PATCH] perl shebangs: Use /usr/bin/env, not /usr/bin/perl
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- May 21, 2010, 15:22 UTC
- Message-ID
- <AANLkTinKPntmpqYXTADzivGic3HfeMEDm2f35N8Z7dMc@mail.gmail.com>
- In-Reply-To
- <A612847CFE53224C91B23E3A5B48BAC74483234EEB@xmail3.se.axis.com>
On Fri, May 21, 2010 at 15:15, Peter Kjellerstedt <peter.kjellerstedt@axis.com> 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'
1However. 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.