2011/10/24 Chris Adams <[email protected]>:
> Once upon a time, Michał Piotrowski <[email protected]> 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 <[email protected]>
> Systems and Network Administrator - HiWAAY Internet Services
> I don't speak for anybody but myself - that's enough trouble.
> --
> devel mailing list
> [email protected]
> https://admin.fedoraproject.org/mailman/listinfo/devel



-- 
Best regards,
Michal

http://eventhorizon.pl/
-- 
devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to