It is not there by default. I am asking for /usr/ucb to be added. Maybe I was not clear about that. What the rcPath function does is cut the supplied directories out of the PATH and put them back at the end. So it cuts out /sbin etc. and puts them at the back. But it leaves /usr/ucb in place.
Why is it putting /bin, /sbin, /usr/bin and /usr/sbin at the back of the PATH anyway? There wouldn't be any problem if it just leaves the old PATH alone and just add the OpenPKG dirs in front of it. Regards, Arnoud. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ralf S. Engelschall Sent: 10 August 2006 16:30 To: openpkg-users@openpkg.org Subject: Re: Fixing PATH on Solaris On Thu, Aug 10, 2006, [EMAIL PROTECTED] wrote: > The rc.openpkg script does some messing around with the PATH variable. > On Solaris this results to /bin, /sbin, /usr/bin and /usr/sbin being > placed after /usr/ucb. This can give some unexpected results for some > commands as the ucb dir contains old BSD versions of some commands (from > the olden days when Solaris was still a BSD) and is only there for > legacy purposes. This can be fixed by placing /usr/ucb after the list of > dirs in line 44 of /etc/rc.d/rc.openpkg: > > export PATH > rcPath -a -e PATH /bin /sbin /usr/bin /usr/sbin /usr/ucb > rcPath -a PATH /local/openpkg/bin /local/openpkg/sbin > /local/openpkg/local/bin /local/openpkg/local/sbin > > I hope this can be fixed in the next release. Hmmm... line 44 of rc.openpkg reads... | rcPath -a -e PATH \ | /bin /sbin /usr/bin /usr/sbin ...and this since years! We _never_ had any "/usr/ucb" there. I guess someone changed this file locally at your side. You can check this with: $ /local/openpkg/bin/openpkg rpm -Vf /local/openpkg/etc/rc.d/rc.openpkg It has to be changed locally. Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List openpkg-users@openpkg.org