2011/10/24 Chris Adams <cmadams(a)hiwaay.net>:
Once upon a time, Michał Piotrowski <mkkp4x4(a)gmail.com> said:
> In any case
> #!/usr/bin/env sh
> seems to be more portable solution.
Using env has always been a hack (and overhead, especially on otherwise
short shell scripts).
Yeah, this solution has its drawbacks, but it also has undoubted
advantages. Generally speaking it is better for end users to use
#!/usr/bin/env php/python/whatever in scripts.
As for "portable", /bin/sh is as portable as it gets. I doubt there has
been a significanly used Unix-like system since 7th Edition that didn't
have a Bourne-like shell at /bin/sh.
--
Chris Adams <cmadams(a)hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
--
devel mailing list
devel(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
--
Best regards,
Michal
http://eventhorizon.pl/