Re: PATH has /bin before /usr/bin in upgraded rawhide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 28.10.2013 11:11, Michael Schwendt wrote:
On Sun, 27 Oct 2013 15:43:44 +0100, Sandro Mani wrote:

In which places have you searched already?
$HOME/.bashrc
$HOME/.bash_profile
/etc/bashrc
/etc/profile
/etc/profile.d/*
Is it the same for a fresh user account?
Is it the same for "root"?
Logging in from a VT as root resp. newly created user test I get

[root@oldrawhide]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
# -> chaos
Chaos? That output looks normal and has been like that for years.
Oh yeah sorry, true. (I had expected /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/root/bin). But I wonder, why is /bin before /usr/bin here? It makes i.e. AC_PATH_PROG fail miserably for many old-style autoconf scripts which use this to determine the prefix. (Though agreed, you usually do not compile things as root).

[test@oldrawhide]$ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/test/.local/bin:/home/test/bin
# -> /bin:/usr/bin inverted, otherwise ok
My Rawhide is broken, so I cannot check whether this is reproducible
and specific to Rawhide (e.g. via the path munging in /etc/profile).
A little bit debugging output (even simply printing $PATH to a file)
in the bash config files might lead to something already.
On both the oldrawhide and newrawhide machines, adding echo $PATH > /tmp/path as the first line in /etc/bashrc and /etc/profile, /bin is before /usr/bin.
- add line to /etc/bashrc, cat /tmp/path gives
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin
- add line to /etc/profile, cat /tmp/path gives
/usr/local/bin:/bin:/usr/bin

The odd thing I didn't notice before is that on a VT, also on the newrawhide machine (as non-root user) I get /usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/$HOME/.local/bin:$HOME/bin. But from a GUI terminal, /bin and /usr/bin are in inverted order (i.e. /usr/bin before /bin, as expected). Can anyone else reproduce this?

Thanks,
SAndro
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux