On Sunday 01 April 2007, Peter Volkov wrote: > Hello. > > Path of some utilities in coreutils-6.7-r1 changed from /usr/bin to /bin > and vice versa. This cause some scripts became broken as they relied on > the full path to executable. The question is: does there exist best > practice on how to avoid this problem in future? Should we set some > default PATH in scripts or should we call "command -p program"? Or as > this is mainly problem for scripts that work in cron we should suggest > users to set PATH in crontab? Or may be we should fix coreutils to > create all possible symlinks? > > TIA,
IMHO I have always like the PATH in script approach, it seems like a reasonable solution to me. -- Guillermo A. Amaral, CSE # Free & Open Source Advocate & nick: guillermoamaral @ blog: http://blog.guillermoamaral.com/ @ site: http://www.guillermoamaral.com/ $ irc: [EMAIL PROTECTED] % gpg: http://downloads.guillermoamaral.com/public.asc
pgpvuHUMn7tqH.pgp
Description: PGP signature