#!/bin/bash # Uncomment for debugging # set -x [ -n "$EUID" ] || export EUID=`id -u` [ -n "$UID" ] || export UID=`id -ru` [ $EUID -eq 0 ] && return # Root should only be manipulated by /root/.profile function getTcshEnvs() { # Extract variables from the "tcsh" startup scripts so they can # be kept consistent here without having to remember to change # them in two places tcshenvs=`/bin/tcsh -l <