Date: Mon, 24 Apr 2017 13:01:51 -0600 From: Adam Weinberger <adamw@adamw.org> To: Jan Beich <jbeich@FreeBSD.org> Cc: Emanuel Haupt <ehaupt@FreeBSD.org>, ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: Re: svn commit: r439336 - head/Tools/scripts Message-ID: <70CC3905-8A7E-41C7-A45F-5D4CC5BBECB9@adamw.org> In-Reply-To: <1ssh-eirz-wny@FreeBSD.org> References: <201704241727.v3OHRwXA083890@repo.freebsd.org> <1ssh-eirz-wny@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 24 Apr, 2017, at 12:56, Jan Beich <jbeich@FreeBSD.org> wrote: >=20 > Emanuel Haupt <ehaupt@FreeBSD.org> writes: >=20 >> Author: ehaupt >> Date: Mon Apr 24 17:27:58 2017 >> New Revision: 439336 >> URL: https://svnweb.freebsd.org/changeset/ports/439336 >>=20 >> 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 >=20 > Why not use -S ? Tools/scripts/ are unlikely to be run on non-FreeBSD. >=20 > #!/usr/bin/env -S perl -w >=20 > 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 --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?70CC3905-8A7E-41C7-A45F-5D4CC5BBECB9>