Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problem with modifying PATH with a file in env.d
Date: Sat, 31 May 2008 22:42:58
Message-Id: BA8B14D4-D3E4-4660-AB81-E38028FAFA7D@stellar.eclipse.co.uk
In Reply to: [gentoo-user] Problem with modifying PATH with a file in env.d by Marc Blumentritt
1 On 31 May 2008, at 21:01, Marc Blumentritt wrote:
2
3 > Hi,
4 >
5 > I want to modify PATH for every user by adding this file in /etc/
6 > env.d:
7 >
8 > hive env.d # cat 99busybox
9 > PATH=/bblinks
10 > hive env.d # ls -l 99busybox
11 > -rw-r--r-- 1 root root 14 2008-05-31 21:46 99busybox
12 >
13 > Neither env-update && . /etc/profile nor a reboot adds /bblinks to
14 > my PATH.
15 >
16 > Any advice?
17
18 $ grep ^PATH /etc/env.d/*
19 /etc/env.d/00basic:PATH="/opt/bin"
20 /etc/env.d/05gcc-i386-pc-linux-gnu:PATH="/usr/i686-pc-linux-gnu/gcc-
21 bin/4.1.1"
22 /etc/env.d/05gcc-i686-pc-linux-gnu:PATH="/usr/i686-pc-linux-gnu/gcc-
23 bin/4.1.2"
24 /etc/env.d/20java:PATH=/opt/sun-jdk-1.4.2.17/bin:/opt/sun-
25 jdk-1.4.2.17/jre/bin:/opt/sun-jdk-1.4.2.17/jre/javaws
26 $ grep PATH .*
27 .bashrc:export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${PATH}"
28 $
29
30 The path in my .bashrc adds to the existing path, but maybe you have
31 something else there?
32
33 Stroller.
34 --
35 gentoo-user@l.g.o mailing list

Replies

Subject Author
[gentoo-user] Re: Problem with modifying PATH with a file in env.d Marc Blumentritt <marc.blumentritt@×××××.de>