OSSP CVS Repository

ossp - Difference in ossp-pkg/due/.bash_login versions 1.1 and 1.2
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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
 

CVSTrac 2.0.1