Shebang Lines

José Matos jaomatos at gmail.com
Sun Jan 8 11:15:54 UTC 2023


On Sat, 2023-01-07 at 17:46 -0500, Richard Kimberly Heck wrote:
> I've changed the Mac scripts in stable. Should we do this for the
> python 
> scripts, too? E.g., replace
> 
> #!/usr/bin/python3
> 
> with
> 
> #!/usr/bin/env python3
> 
> ??
> 
> Riki

Please do not. That will mean more work for me.

Unless someone is using them in other systems they are there just for
convenience. LyX always takes care about the proper place and it will
ignore that line.

/usr/bin/env is just adding another level of indirection (the usual way
to solve any problem in programming), it does help for portability
cases but it also has its drawbacks.

In this particular case if you change them I will have to create a sed
script to move them all back when packaging for Fedora.

Best regards,
-- 
José Abílio


More information about the lyx-devel mailing list