-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 31 December 2001 12:04 am, John P Verel wrote: > > 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]\\$ "
> 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. True, but those path modifications can easily be made conditional, no? if ! echo $PATH | /bin/grep -q "/usr/X11R6/bin" ; then PATH="$PATH:/usr/X11R6/bin" fi if ! echo $PATH | /bin/grep -q "/usr/java/jre1.3.1/bin" ; then PATH="/usr/java/jre1.3.1/bin:$PATH" fi The code above is from my /etc/profile > See my note of a few minutes ago re: --noprofile option: tomorrow's > projects Well, that's probably more elegant, but I'd still advocate conditional path modification. ;) - -D - -- pgp key: http://www.tuxfan.homeip.net:8080/pgpkey.txt - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE8L/R+eMAUbzJhSVcRAkkpAJ9SyhT2TOlGI2dgnwewdw16zrsvlACfXEvy kdSJIzwn4AA42gdEeN5B3zs= =APhZ -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list