On 2009/03/25, at 12:10, Graham Percival wrote:

On Tue, Mar 24, 2009 at 08:41:04PM +0000, Claudia wrote:

#!/usr/bin/env python

in order to run in all today's unix systems, including Mac OS X.

Using this shebang is a great way to portability.

I believe that some systems use /bin/env ?  Or has this been
stabilized in LSB?

See previous discussions about this:
http://lists.gnu.org/archive/html/lilypond-devel/2008-03/msg00216.html
http://lists.gnu.org/archive/html/lilypond-devel/2008-07/msg00133.html
http://www.mail-archive.com/bug-lilypond@gnu.org/msg12052.html


Cheers,
- Graham


As far as I know, all major unixes have /usr/bin/env

Although we can never guarantee real portability with shebangs, the env binary is the most generic solution. If a system does have /bin/env probably the sysadmin already had the need to link it in /usr/bin for some other application.

One info source about shebangs can be found at http://www.in-ulm.de/ ~mascheck/various/shebang/

Cheers

Cláudia

|♪♫♪|♫♫|♪♫♪|





_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to