[Gllug] /usr/bin/env and the web server user account

Nix nix at esperi.org.uk
Fri May 20 07:01:18 UTC 2011


On 20 May 2011, Steve Parker outgrape:

> I've never used this syntax, but have seen it used enough times, and my understanding is (as you say) that it is to provide a clean
> environment: /usr/bin/env FOO=bar myapp.

Yes, that's one thing that command does, but its primary purpose in
hashbang lines is to force a path search, thus removing any dependence
on the location of e.g. perl (and adding one on the location of env!)

-- 
NULL && (void)
--
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list