Index: ossp-pkg/due/.bash_login RCS File: /v/ossp/cvs/ossp-pkg/due/.bash_login,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/due/.bash_login,v' 2>/dev/null --- .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 Index: ossp-pkg/due/.due/due.term.sh RCS File: /v/ossp/cvs/ossp-pkg/due/.due/due.term.sh,v rcsdiff -q -kk '-r1.1' '-r1.2' -u '/v/ossp/cvs/ossp-pkg/due/.due/due.term.sh,v' 2>/dev/null --- due.term.sh 2004/07/10 08:17:15 1.1 +++ due.term.sh 2004/10/04 15:34:50 1.2 @@ -43,9 +43,14 @@ # adjust terminal settings if expr $- : ".*i.*" >/dev/null; then - mesg y + BASH_INTERACTIVE=yes +else + BASH_INTERACTIVE=no fi -if [ ".$TERM" = .xterm ]; then +if [ ".$BASH_INTERACTIVE" = .yes ]; then + mesg y +fi +if [ ".$TERM" = .xterm -a ".$BASH_INTERACTIVE" = .yes ]; then stty -istrip cs8 fi shopt -s checkwinsize @@ -59,6 +64,7 @@ HISTSIZE=9000 HISTFILESIZE=9000 HISTIGNORE="&" +HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S ' # provide command for rotating a little propeller for # keeping a remote connection busy and this way alive Index: ossp-pkg/due/.due/due.tmpdir.sh RCS File: /v/ossp/cvs/ossp-pkg/due/.due/due.tmpdir.sh,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/due/.due/due.tmpdir.sh,v' | diff -u /dev/null - -L'ossp-pkg/due/.due/due.tmpdir.sh' 2>/dev/null --- ossp-pkg/due/.due/due.tmpdir.sh +++ - 2025-05-20 21:02:57.065423622 +0200 @@ -0,0 +1,52 @@ +## +## OSSP due - Dynamic User Environment +## Copyright (c) 1994-2004 Ralf S. Engelschall +## Copyright (c) 1994-2004 The OSSP Project +## +## This file is part of OSSP due, a dynamic user environment +## which can found at http://www.ossp.org/pkg/tool/due/ +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## +## tmdir: DUE module for TMPDIR handling +## + +if [ -z $TMPDIR ]; then + if [ -d $HOME/tmp ]; then + # reuse own temporary directory + TMPDIR=$HOME/tmp + export TMPDIR + elif [ -d /tmp ]; then + if [ ! -d /tmp/$LOGNAME ]; then + # just try to create it without checking results + (umask 066; mkdir /tmp/$LOGNAME) >/dev/null 2>&1 || true + fi + if [ -d /tmp/$LOGNAME ]; then + # check whether the existing directory is really owned by + # us and at the same time fix possible wrong permissions + # (from an previously existing directory) + chmod 711 /tmp/$LOGNAME >/dev/null 2>&1 + if [ $? -eq 0 ]; then + TMPDIR=/tmp/$LOGNAME + export TMPDIR + fi + fi + fi +fi +