> On Sun, 01 Apr 2007 19:15:13 +0400 > Peter Volkov <[EMAIL PROTECTED]> wrote: >> On Sun, 2007-04-01 at 00:01 -0700, Alec Warner wrote: >> > One idea that comes to mind is /usr/bin/env $bin >> >> And here we return to the problem that one day /usr/bin/env, could >> become /bin/env... Or that /usr/ sometimes is not mounted during boot.
On Gentoo, env is in /bin and /usr/bin /usr/bin/env is present on every unix system I've ever been on (I kind of make it a habit to check) and probably a ton I've never used ;) However using env really only makes sense in the #!/usr/bin/env foo case. Pretty much every other case you should be setting PATH to something proper in your script. -- gentoo-dev@gentoo.org mailing list