From a806fcf6406904cc137558347ae777a3cda892c1 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 5 Sep 2004 07:22:21 +0000 Subject: [PATCH] Check for the fixed stty option-parsing bugs. --- tests/stty/basic-1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/stty/basic-1 b/tests/stty/basic-1 index 780b43678f..c53410f50a 100755 --- a/tests/stty/basic-1 +++ b/tests/stty/basic-1 @@ -30,7 +30,12 @@ stty --save > $saved_state || fail=1 stty `cat $saved_state` || fail=1 # This would segfault prior to sh-utils-2.0j. -stty erase - +stty erase - || fail=1 + +# These would improperly ignore invalid options through coreutils 5.2.1. +stty -F 2>/dev/null && fail=1 +stty -raw -F no/such/file 2>/dev/null && fail=1 +stty -raw -a 2>/dev/null && fail=1 # Build a list of all boolean options stty accepts on this system. options=`stty -a|tail -n +2|tr ';' '\n'|sed '/ = /d;s/^ //;s/-//g'` -- 2.47.2