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

Mark Sergeant msergeant at snsonline.net
Sun Jan 30 03:11:47 PST 2005


>> HANKS!
>
> Don't despair, ironically Perl itself can solve this problem for you, 
> using
> something like
>
> 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".

Cheers,

Mark



More information about the freebsd-stable mailing list