diff options
author | Jim Meyering <jim@meyering.net> | 2005-01-03 21:25:13 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-01-03 21:25:13 +0000 |
commit | 34027743250f6c9fcbe481921d431d9e675ab8c3 (patch) | |
tree | 9fa91505dc29399f31ecfa664ad9dcd09f934f73 | |
parent | 8ca6bb6254e64e7d7c88d8a0f15d62e3754db73f (diff) | |
download | coreutils-34027743250f6c9fcbe481921d431d9e675ab8c3.tar.xz |
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.
-rwxr-xr-x | tests/stty/row-col-1 | 12 |
1 files changed, 6 insertions, 6 deletions
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 ' |