svn commit: r439336 - head/Tools/scripts
Adam Weinberger
adamw at adamw.org
Mon Apr 24 19:02:01 UTC 2017
> On 24 Apr, 2017, at 12:56, Jan Beich <jbeich at FreeBSD.org> wrote:
>
> Emanuel Haupt <ehaupt at FreeBSD.org> writes:
>
>> Author: ehaupt
>> Date: Mon Apr 24 17:27:58 2017
>> New Revision: 439336
>> URL: https://svnweb.freebsd.org/changeset/ports/439336
>>
>> Log:
>> Fix shebang. If /usr/bin/env is used the -w flag can't be passed after perl.
>> Use 'use warnings;' instead.
> [...]
>> -#!/usr/bin/env perl -w
>> +#!/usr/bin/env perl
>
> Why not use -S ? Tools/scripts/ are unlikely to be run on non-FreeBSD.
>
> #!/usr/bin/env -S perl -w
>
> https://svnweb.freebsd.org/changeset/base/147493
The "warnings" pragma is preferred over the "-w" switch anyway. See https://perldoc.perl.org/warnings.html#What's-wrong-with-*-w*-and-%24%5eW
# Adam
--
Adam Weinberger
adamw at adamw.org
https://www.adamw.org
More information about the svn-ports-head
mailing list