Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

/usr/bin/env perl

2 views
Skip to first unread message

Kaare Rasmussen

unread,
Oct 2, 2014, 6:48:59 AM10/2/14
to qpsmtpd@perl.org ML
Hi

I use perlbrew and therefore change the first line of e.g.
qpsmtpd-forkserver to /usr/bin/env perl. It has possibly been discussed
before (?) but are there anything that prevents this to go into the repo?

Peter J. Holzer

unread,
Oct 2, 2014, 4:24:36 PM10/2/14
to qps...@perl.org
In general, I think that "#!/usr/bin/env perl" is a terrible idea for
any script as it makes that script dependent on the PATH. That's even
worse for perlbrew and a daemon, which is usually started at boot time
and cannot rely on the PATH containing anything except the system
default.

That said, "make install" replaces the shebang line with a path to the
correct perl interpreter anyway, so it doesn't matter what's in the
source.

hp

--
_ | Peter J. Holzer | I want to forget all about both belts and
|_|_) | | suspenders; instead, I want to buy pants
| | | h...@hjp.at | that actually fit.
__/ | http://www.hjp.at/ | -- http://noncombatant.org/
signature.asc
0 new messages