/usr/bin/perl ?

John Ralls jralls at ceridwen.us
Sat Oct 24 18:23:36 EDT 2015


> On Oct 24, 2015, at 2:15 PM, Erik Colson <eco at ecocode.net> wrote:
> 
> Hi John!
> 
> Is there any reason for using
> #!/usr/bin/perl -w
> 
> instead of
> #!/usr/bin/env perl -w
> 
> as shbang in the perl scripts ?

You mean aside from it being a gaping security hole? How about that /usr/bin/perl ensures that the system/distro perl is what gets used and the modules are always installed in its @INC and it can always find them. Using whatever perl happens to be first in the current $PATH might or might not be able to find those modules, and remote-debugging the resulting problem with an inexpert user would be difficult indeed.

Regards,
John Ralls




More information about the gnucash-user mailing list