Date: Sun, 30 Jan 2005 21:11:34 +1000 From: Mark Sergeant <msergeant@snsonline.net> To: Frerich Raabe <raabe@kde.org> Cc: freebsd-stable@freebsd.org Subject: Re: [HEADS UP] perl symlinks in /usr/bin will be gone Message-ID: <06d669a96d0ca3a9e026f564e0422598@snsonline.net> In-Reply-To: <200501301208.19650.raabe@kde.org> References: <20050129202425.GA56998@heechee.tobez.org> <1985053043.20050130134456@serebryakov.spb.ru> <200501301208.19650.raabe@kde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?06d669a96d0ca3a9e026f564e0422598>