From 03c100e65d689d2a1d81fcd1dff286876383f840 Mon Sep 17 00:00:00 2001 From: todd <> Date: Wed, 16 Oct 2002 15:39:10 +0000 Subject: [PATCH] when using this file, label and ilabel set the term 'title' and icon labels. they do this by sending to stdout. commands like: 'ftp -o - ftp://blah/foo>foo' do not like having data added to the output stream. since we only define these two functions in an environment where /dev/tty exists, send output to /dev/tty to make sure it does not corrupt the output stream of commands. --- src/etc/ksh.kshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/ksh.kshrc b/src/etc/ksh.kshrc index fb0eade0..d72b2e9c 100644 --- a/src/etc/ksh.kshrc +++ b/src/etc/ksh.kshrc @@ -1,5 +1,5 @@ : -# $OpenBSD: ksh.kshrc,v 1.9 2002/05/30 06:44:07 deraadt Exp $ +# $OpenBSD: ksh.kshrc,v 1.10 2002/10/16 15:39:10 todd Exp $ # # NAME: # ksh.kshrc - global initialization for ksh @@ -92,8 +92,8 @@ case "$-" in esac # do we want window decorations? if [ "$ILS" ]; then - ilabel () { print -n "${ILS}$*${ILE}"; } - label () { print -n "${WLS}$*${WLE}"; } + ilabel () { print -n "${ILS}$*${ILE}">/dev/tty; } + label () { print -n "${WLS}$*${WLE}">/dev/tty; } alias stripe='label "$USER@$HOST ($tty) - $PWD"' alias istripe='ilabel "$USER@$HOST ($tty)"'