On 28.10.2013 15:39, T.C. Hollingsworth wrote:
On Sat, Oct 26, 2013 at 4:10 PM, Sandro Mani <manisandro@xxxxxxxxx> wrote:
Hi,
I just noticed that my rawhide installation, which was originally installed
when F18 was rawhide in summer 2012 and upgraded since, has
PATH=/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/home/sandro/.local/bin:/home/sandro/bin
On a fresh rawhide installation, I get
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/sandro/.local/bin:/home/sandro/bin
So, the order of /bin /usr/bin /usr/local/bin is reversed. Who is screwing
up the order?
- /etc/profile, /etc/bashrc and /etc/profile.d/* are identical between the
"old" and the "new" installations
- strings /bin/bash | grep /bin gives me the same output in both cases
- my .bashrc and .bash_profile are harmless (i.e.
PATH=$PATH:$HOME/.local/bin:$HOME/bin)
Since it's not coming from /etc/profile or our .bashrc, I wonder if
it's coming from our desktop environment setup or something.
Let's check locally, then ssh into the same system and see if it's the same.
[tc@zathras]~% echo $PATH
/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/bin:/usr/bin:/usr/local/bin:/home/tc/bin:/usr/local/sbin:/usr/sbin
[tc@zathras]~% ssh localhost
Last login: <snipped>
[tc@zathras]~% echo $PATH
/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/home/tc/bin:/usr/local/sbin:/usr/sbin
Nope, notice that locally /bin is in $PATH, but when I ssh into the
same system, it isn't. Where's it coming from?
% grep PATH /usr/bin/startkde
# in case we have been started with full pathname spec without being in PATH
case $PATH in
*) PATH=$bindir:$PATH; export PATH;
% grep bindir /usr/bin/startkde
bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'`
if [ -n "$bindir" ]; then
qbindir=`$bindir/kde4-config --qt-binaries`
qdbus=$qbindir/qdbus
$bindir|$bindir:*|*:$bindir|*:$bindir:*) ;;
*) PATH=$bindir:$PATH; export PATH;;
Hmm, that looks like it might be it. So I added an `echo $bindir >
/tmp/bindir` to that script to see if it's not just a red herring.
% cat /tmp/bindir
/bin
Yup, that's it.
https://bugzilla.redhat.com/show_bug.cgi?id=1023999
Might want to check your desktop environment's start script too, if
it's different.
-T.C.
Aha, that's interesting! Indeed my "oldrawhide" box is running kde and
my "newrawhide" box is running gnome. Thanks for the bugreport!
Sandro
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct