From 34027743250f6c9fcbe481921d431d9e675ab8c3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 3 Jan 2005 21:25:13 +0000 Subject: Don't set rows or columns to zero, to avoid a bug in the TIOCGWINSZ ioctl on at least Solaris5.9 systems. Setting either (or both) to zero would succeed, but subsequent `stty size' would say `no size information for this device' due to the ioctl failing with EINVAL. --- tests/stty/row-col-1 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/stty/row-col-1 b/tests/stty/row-col-1 index edf2db501..7873a6df8 100755 --- a/tests/stty/row-col-1 +++ b/tests/stty/row-col-1 @@ -26,13 +26,13 @@ export LC_ALL tests=' 1 rows_40_columns_80 40_80 -2 rows_0_columns_0 0_0 +2 rows_1_columns_1 1_1 3 rows_40_columns_80 40_80 -4 rows_0 0_80 -5 columns_0 0_0 -6 rows_40 40_0 -7 rows_0 0_0 -8 columns_80 0_80 +4 rows_1 1_80 +5 columns_1 1_1 +6 rows_40 40_1 +7 rows_1 1_1 +8 columns_80 1_80 9 rows_30 30_80 NA LAST NA ' -- cgit v1.2.3-54-g00ecf