http://bugzilla.novell.com/show_bug.cgi?id=560903
http://bugzilla.novell.com/show_bug.cgi?id=560903#c4
Dr. Werner Fink changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
Info Provider| |wjones@fluke.com
--- Comment #4 from Dr. Werner Fink 2009-12-08 09:32:46 UTC ---
(In reply to comment #2)
Please note that I'm a tcsh user as I prefere tcsh as interactive shell.
Beside this IMHO the path scheme should be identical for a most normal
user != root the as the initial path in csh.login is
/usr/local/bin /usr/bin /bin
only for root you'll find the path
/sbin /usr/sbin /usr/local/sbin
now see /etc/profile
if test -z "$PROFILEREAD" ; then
PATH=/usr/local/bin:/usr/bin:/bin
if test "$HOME" != "/" ; then
for dir in $HOME/bin/$CPU $HOME/bin ; do
test -d $dir && PATH=$dir:$PATH
done
fi
if test "$UID" = 0 ; then
test -d /opt/kde3/sbin && PATH=/opt/kde3/sbin:$PATH
PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
fi
for dir in /usr/X11/bin \
/usr/bin/X11 \
/usr/X11R6/bin \
/var/lib/dosemu \
/usr/games \
/opt/bin \
/opt/kde3/bin \
/opt/kde2/bin \
/opt/kde/bin \
/usr/openwin/bin \
/opt/cross/bin
do
test -d $dir && PATH=$PATH:$dir
done
unset dir
export PATH
fi
and compare this with /etc/csh.login
unset noglob
set _hpath
set _spath
set _upath=( /usr/local/bin /usr/bin /bin )
if ( "$HOME" != "/" ) then
foreach _d (${HOME}/bin/${CPU} ${HOME}/bin)
if ( -d $_d ) set _hpath=( $_d $_hpath )
end
endif
if ( "$uid" == "0" ) then
if ( -d /opt/kde3/sbin ) set _spath=( /opt/kde3/sbin )
set _spath=( /sbin /usr/sbin /usr/local/sbin $_spath )
endif
foreach _d (/usr/X11/bin \
/usr/bin/X11 \
/usr/X11R6/bin \
/var/lib/dosemu \
/usr/games \
/opt/bin \
/opt/kde3/bin \
/opt/kde2/bin \
/opt/kde/bin \
/usr/openwin/bin \
/opt/cross/bin )
if ( -d $_d ) set _upath=( $_upath $_d )
end
unset _d
if ( ${?OPENWINHOME} ) then
if ( -d $OPENWINHOME/bin ) then
set _upath=( $_upath $OPENWINHOME/bin )
endif
endif
#
# Doing only one rehash
#
set -f path=( $_hpath $_spath $path $_upath )
unset _upath
unset _spath
unset _hpath
set noglob
you may test this by using
env -i TERM=$TERM bash -c '. /etc/profile; echo $PATH'
env -i TERM=$TERM tcsh -c 'source /etc/csh.login; echo $PATH'
which should reflect the paths used in /etc/profile and /etc/csh.login
any other path found is caused by the package extension environment
files found at /etc/profile.d/ and every package should have both a
bourne shell and a csh file.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.