On Sun, Jan 30, 2005 at 09:11:34PM +1000, Mark Sergeant wrote:
> >find /some/directory -type f -print0 | \
> >     xargs -0 perl -pi -e 's,^#! ?/usr(/local)?/bin/perl,#!/usr/bin/env 
> >perl'
> >
> 
> One problem I always had with "env" or equivalents... what happens if 
> someone manages to polute $PATH with a perl that is not infact perl but 
> something else, I remember being taught "Always specify full paths to 
> binaries, especially in cron".

/usr/local/bin is default path in $PATH on FreeBSD, so problems like
"what if it isn't perl, but something else" should be resolved by
users/admins.

-Kirill
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to