Browse Source

Only run tset for interactive shells. OK robert@

OPENBSD_4_9
millert 14 years ago
parent
commit
70cb24d85a
1 changed files with 11 additions and 7 deletions
  1. +11
    -7
      src/etc/root/dot.profile

+ 11
- 7
src/etc/root/dot.profile View File

@ -1,4 +1,4 @@
# $OpenBSD: dot.profile,v 1.8 2009/05/06 22:02:05 millert Exp $
# $OpenBSD: dot.profile,v 1.9 2010/12/13 12:54:31 millert Exp $
# #
# sh/ksh initialization # sh/ksh initialization
@ -8,10 +8,14 @@ export PATH
export HOME export HOME
umask 022 umask 022
if [ -x /usr/bin/tset ]; then
if [ X"$XTERM_VERSION" = X"" ]; then
eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM`
else
eval `/usr/bin/tset -IsQ '-munknown:?vt220' $TERM`
case "$-" in
*i*) # interactive shell
if [ -x /usr/bin/tset ]; then
if [ X"$XTERM_VERSION" = X"" ]; then
eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM`
else
eval `/usr/bin/tset -IsQ '-munknown:?vt220' $TERM`
fi
fi fi
fi
;;
esac

Loading…
Cancel
Save