diff --git a/profile b/profile index 9e4b158..fcd29b9 100644 --- a/profile +++ b/profile @@ -1,4 +1,4 @@ -# /etc/profile +#_/etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in /etc/bashrc @@ -21,14 +21,13 @@ pathmunge () { esac } - if [ -x /usr/bin/id ]; then if [ -z "$EUID" ]; then # ksh workaround - EUID=`/usr/bin/id -u` - UID=`/usr/bin/id -ru` + EUID=$(/usr/bin/id -u) + UID=$(/usr/bin/id -ru) fi - USER="`/usr/bin/id -un`" + USER="$(/usr/bin/id -un)" LOGNAME=$USER MAIL="/var/spool/mail/$USER" fi @@ -42,7 +41,7 @@ else pathmunge /usr/sbin after fi -HOSTNAME=`/usr/bin/hostname 2>/dev/null` +HOSTNAME=$(/usr/bin/hostname 2>/dev/null) HISTSIZE=1000 if [ "$HISTCONTROL" = "ignorespace" ] ; then export HISTCONTROL=ignoreboth @@ -86,3 +85,4 @@ fi # auto logout after 30 minutes of innactivity #TMOUT=1800 +