[Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)

Dan Ritter dsr at randomstring.org
Wed Jun 21 19:26:55 EDT 2023


Bill Bogstad wrote: 
> I haven't noticed anyone calling out the issue of where interpreters
> are installed.
> 
> Do I put
> 
> #!/bin/perl
> or
> #!/usr/bin/perl
> or maybe
> /opt/bin/perl


If it's on your systems, you know where to find the right perl
(or python3 or ruby or...)

If you're packaging for a particular distro, you know where they
put it.

If you're releasing into the wild, put /usr/bin/perl and mention
in the README that some people may have to adjust the path.

If you're releasing into the wild as part of something
complicated, have the general installer ask the person
installing for locations of binaries.

If you have a really big old project, maybe configure is already
in use...

-dsr-


More information about the Discuss mailing list