[HEADS UP] perl symlinks in /usr/bin will be gone

Kirill Ponomarew krion at voodoo.oberon.net
Sun Jan 30 03:18:23 PST 2005

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


More information about the freebsd-ports mailing list