From: short <> Date: Wed, 7 Jan 2004 15:28:14 +0000 (+0000) Subject: Fixed EUID detection on Solaris. X-Git-Tag: bp_liverpm~42 X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=a033dfaace849df127f5ef1c81e5a9897c7f0179 Fixed EUID detection on Solaris. --- diff --git a/.bashrc b/.bashrc index a521e40..3bd2db5 100644 --- a/.bashrc +++ b/.bashrc @@ -31,9 +31,10 @@ _bash_profile_addpath -f PATH "$HOME/bin" _bash_profile_addpath -f PATH "/share/ProductivityTools/exe" _bash_profile_addpath -f PATH "/opt/sfw/bin" # gid(1) dependency on: /opt/sfw/bin -[ `id -u 2>/dev/null || gid -u` -eq 0 ] && _bash_profile_addpath -f PATH "$HOME/sbin" +# EUID="`id -u 2>/dev/null || /usr/xpg4/bin/id -u 2>/dev/null || gid -u`" +[ $EUID -eq 0 ] && _bash_profile_addpath -f PATH "$HOME/sbin" _bash_profile_addpath -f PATH "/usr/local/bin" -[ `id -u 2>/dev/null || gid -u` -eq 0 ] && _bash_profile_addpath -f PATH "/usr/local/sbin" +[ $EUID -eq 0 ] && _bash_profile_addpath -f PATH "/usr/local/sbin" _bash_profile_addpath -f LD_LIBRARY_PATH "$HOME/lib" _bash_profile_addpath -f LD_LIBRARY_PATH "/opt/sfw/lib" _bash_profile_addpath -f MANPATH "$HOME/man"