[aprssig] Programming Language Advice
Magne Mæhre
magne at samfundet.no
Wed Jan 28 15:17:41 EST 2009
Chuck.Gooden at comcast.net wrote:
> No that's not correct, for Python scripts you use:
> #!/bin/python
> For Perl scripts use:
> #!/bin/perl
I would line to suggest that /usr/bin/env is used, like
#!/usr/bin/env python
or
#!/usr/bin/env perl
to ensure better portability
the "#!" (a.k.a "shebang") mandates a full path, and not all
systems have perl/python/ruby/whatever in /bin.
env(1), on the other hand, is required (SUS/Posix) to live in
/usr/bin. The point of env(1) is that it searches your PATH
for the given binary, and executes it from wherever it finds it.
--Magne / LA1BFA
More information about the aprssig
mailing list