blazerte wrote:
> but...
> 
> Is /usr/bin/env more "universal" than /usr/bin/perl ?

That is the purpose of this survey. If, as I expect, we don't find a 
platform that doesn't have /usr/bin/env then we can say that 
/usr/bin/env is indeed more universal than /usr/bin/perl

> I'm only familiar than Debian, really. Has there been a problem in the
> past with certain operating systems or dists ?

I've run into the issue when experimenting with Solaris (Nevada b85).

Solaris comes with perl in /usr/bin, but only v5.8.4. A later version is 
available from the Sun "coolstack" project - 5.8.8. This is installed in 
/opt/coolstack/perl, with the binary in /opt/coolstack/bin. I have 
modified /opt/coolstack/bin to be in my path *before* /usr/bin

So, when the shebang is "#!/usr/bin/perl", that version of perl is used 
instead of the one I want to use.

Using "#!/usr/bin/env perl" means that the script will use whatever 
version of perl the system is configured to prefer rather than forcing 
/usr/bin/perl.

R.

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to