Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#35978 - bin directory merge cause wrong behavior in applications

Attached to Project: Arch Linux
Opened by Victor Aurélio (hotvic) - Saturday, 29 June 2013, 17:14 GMT
Last edited by Dave Reisner (falconindy) - Sunday, 21 July 2013, 21:32 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The merge of /sbin /usr/sbin /bin in /usr/bin cause some applications and shell built-in command to have wrong behavior, for example built-in shell command:
$ which python2
/usr/sbin/python2

A possible solution is reorganize the PATH environment and add/move /usr/bin to beginning:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
$ export PATH="/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin"
$ which python2
/usr/bin/python2
This task depends upon

Closed by  Dave Reisner (falconindy)
Sunday, 21 July 2013, 21:32 GMT
Reason for closing:  Works for me
Additional comments about closing:  likely user config error.
Comment by Eric Belanger (Snowman) - Saturday, 29 June 2013, 17:52 GMT
/sbin /usr/sbin /bin where removed from the PATH:

$ pacman -Qo /etc/profile
/etc/profile is owned by filesystem 2013.05-2
$ grep PATH /etc/profile
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"

Maybe you forgot to merge the changes in etc/profile.
Comment by Victor Aurélio (hotvic) - Saturday, 29 June 2013, 21:44 GMT
here my:
$ grep PATH /etc/profile
PATH="/usr/local/sbin:/usr/local/bin:/usr/bin"
export PATH

so I think that something is adding these for my PATH, I'll examine this.
Comment by Victor Aurélio (hotvic) - Saturday, 29 June 2013, 22:07 GMT
discovered, oh-my-zsh that have added a copy of the old PATH to ~/.zshrc

so this path now is:
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin

the "/usr/sbin" I haven't idea what's adding this to my path, I think that here isn't local for this question, right ?
Comment by Eric Belanger (Snowman) - Saturday, 29 June 2013, 23:02 GMT
If you remove /usr/sbin from the PATH in ~/.zshrc, does it get readded? I don't use zsh so I can't really help you more. You will probably have more help if you ask on the forums, mailing list or IRC.
Comment by Victor Aurélio (hotvic) - Sunday, 30 June 2013, 00:05 GMT
in .zshrc don't have any more nothing related to PATH, I'll create a topic on forums.

Loading...