Gentoo Archives: gentoo-dev

From: Peter Volkov <pva@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] /{"",usr/}bin path changed. What is the right solution for scripts?
Date: Sun, 01 Apr 2007 06:05:42
Message-Id: 1175407347.20628.19.camel@localhost
1 Hello.
2
3 Path of some utilities in coreutils-6.7-r1 changed from /usr/bin to /bin
4 and vice versa. This cause some scripts became broken as they relied on
5 the full path to executable. The question is: does there exist best
6 practice on how to avoid this problem in future? Should we set some
7 default PATH in scripts or should we call "command -p program"? Or as
8 this is mainly problem for scripts that work in cron we should suggest
9 users to set PATH in crontab? Or may be we should fix coreutils to
10 create all possible symlinks?
11
12 TIA,
13 --
14 Peter.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies