On 12/30/01, 10:29:29PM -0500, Devon wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Sunday 30 December 2001 06:43 pm, John P Verel wrote: > > Hi John, > > > As I use gnome with the gnome display manager, I end up starting > > /etc/X11/xdm/Xsession, passing the argument "gnome-session". I have > > this line in my Xsession, at line number 93: > > > > exec -l $SHELL -c "gnome-session" > > > > Am I correct that this replaces the currently active login shell with a > > new one? The -l options would seem to indicate a new login shell; the > > -c "gnome-session" passed as an argument. > > > > If I've got this right, the "substitute" shell, invoked as a login > > shell, would cause re-sourcing of /etc/profile and ~/.bash_profile, > > in turn causing the path issue. > > Perhaps I'm missing something here. Aren't the path modifications in > /etc/profile conditional? If they are already in the users path, they > shouldn't be added again. That being the case, re-sourcing that file > shouldn't affect your path.
The path modification in profile.d re: keberos is conditional, but not in /etc/profile. My /etc/profile looks like this: # /etc/profile # System wide environment and startup programs # Functions and aliases go in /etc/bashrc # Original Red Hat path follows: # PATH="$PATH:/usr/X11R6/bin" # Adding . 11/24, to pick up current directory for jdk problem. jpv PATH="$PATH:/usr/X11R6/bin:/usr/java/jdk1.3.1/bin" PS1="[\u@\h \W]\\$ " # ulimit -c 1000000 if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then umask 002 else umask 022 fi USER=`id -un` LOGNAME=$USER MAIL="/var/spool/mail/$USER" HOSTNAME=`/bin/hostname` HISTSIZE=1000 HISTFILESIZE=1000 INPUTRC=/etc/inputrc export PATH PS1 USER LOGNAME MAIL HOSTNAME HISTSIZE HISTFILESIZE INPUTRC for i in /etc/profile.d/*.sh ; do if [ -x $i ]; then . $i fi done unset i ---end of /etc/profile--- Thus, every time through, the path statement is appended with the stuff for java (among other things). Twice through, two times in the path statement. See my note of a few minutes ago re: --noprofile option: tomorrow's projects Regards, John -- John P. Verel Living Proof That Low Tech Beats High Tech! _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list