Incorrect $PATH value for root user

2014-04-10 Thread Помазёнков Виталий
Hello. I can't create ticket in Trac, it always says Trac error when submitting ticket form, so i'm posting it here. Actions Type command sudo -i and fill your password. Type command echo $PATH. Result /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/opt/local/bin:/opt/local/sbin

Re: Incorrect $PATH value for root user

2014-04-10 Thread Brandon Allbery
On Thu, Apr 10, 2014 at 6:39 AM, Помазёнков Виталий vit...@yandex.ruwrote: Type command sudo -i and fill your password. Type command echo $PATH. *Result* /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/opt/local/bin:/opt/local/sbin This is sudo's doing (and Apple's insofar as

Re: Incorrect $PATH value for root user

2014-04-10 Thread Помазёнков Виталий
Yes, but MacPorts can control this. Instead of specifying export PATH=/opt/local/bin:/opt/local/sbin:$PATH in ~/.bash_profile it can (and should) specify it system-wide in /etc/bashrc - in this way there will be no problem with programs which is also installed by Apple like svn - all programs

Re: Incorrect $PATH value for root user

2014-04-10 Thread Chris Jones
On 10/04/14 15:48, Помазёнков Виталий wrote: Yes, but MacPorts can control this. Instead of specifying export PATH=/opt/local/bin:/opt/local/sbin:$PATH in ~/.bash_profile it can (and should) specify it system-wide in /etc/bashrc - in this way there will be no problem with programs which is also

Re: Incorrect $PATH value for root user

2014-04-10 Thread Brandon Allbery
On Thu, Apr 10, 2014 at 10:50 AM, Chris Jones jon...@hep.phy.cam.ac.ukwrote: On 10/04/14 15:48, Помазёнков Виталий wrote: Yes, but MacPorts can control this. Instead of specifying export PATH=/opt/local/bin:/opt/local/sbin:$PATH in ~/.bash_profile it can (and should) specify it system-wide

Re: Incorrect $PATH value for root user

2014-04-10 Thread Jan Stary
On Apr 10 18:48:01, vit...@yandex.ru wrote: Yes, but MacPorts can control this. Instead of specifying export PATH=/opt/local/bin:/opt/local/sbin:$PATH in ~/.bash_profile it can (and should) specify it system-wide in /etc/bashrc Absolutely not. Don't any program dare touch things in /etc.

Re: Incorrect $PATH value for root user

2014-04-10 Thread Jan Stary
On Apr 11 07:55:47, h...@stare.cz wrote: On Apr 10 18:48:01, vit...@yandex.ru wrote: Yes, but MacPorts can control this. Instead of specifying export PATH=/opt/local/bin:/opt/local/sbin:$PATH in ~/.bash_profile it can (and should) specify it system-wide in /etc/bashrc Absolutely not.