Boston Linux & UNIX was originally founded in 1994 as part of The Boston Computer Society. We meet on the third Wednesday of each month, online, via Jitsi Meet.

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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-



Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org