ossp-pkg/due/.bash_login 1.1 -> 1.2
--- .bash_login 2004/07/10 08:17:12 1.1
+++ .bash_login 2004/10/04 15:34:50 1.2
@@ -34,7 +34,9 @@
. $BASH_ENV
# welcome and goodbye
-echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), login at `date`"
-echo "#[`date '+%Y-%m-%d/%H:%M'`] login by user ${SSHUSER:-unknown}" >>$HISTFILE
-trap 'echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), logout at `date`"' 0
+if expr $- : ".*i.*" >/dev/null; then
+ echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), login at `date`"
+ echo "#[`date '+%Y-%m-%d/%H:%M'`] login by user ${SSHUSER:-unknown}" >>$HISTFILE
+ trap 'echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), logout at `date`"' 0
+fi
|
|