take down the entire xterm (or GNU screen tab), hard, with:

mksh-R40 -c 'x=$COLUMNS; awk "BEGIN{exit(1)}"'
10x to the PLD Linux guys for spotting _and_ bisecting this!
This commit is contained in:
tg
2011-07-07 20:24:53 +00:00
parent 3ef67e3296
commit a4a000eafb
3 changed files with 6 additions and 6 deletions

4
var.c
View File

@ -26,7 +26,7 @@
#include <sys/sysctl.h>
#endif
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.129 2011/07/06 22:22:02 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/var.c,v 1.130 2011/07/07 20:24:53 tg Exp $");
/*-
* Variables
@ -1461,7 +1461,7 @@ change_winsz(void)
#ifdef TIOCGWINSZ
if (tty_fd < 0)
/* non-FTALKING, try to get an fd anyway */
tty_init(false, false);
tty_init(true, false);
#endif
x_cols = -1;
}