]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Check for the fixed stty option-parsing bugs.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Sep 2004 07:22:21 +0000 (07:22 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 5 Sep 2004 07:22:21 +0000 (07:22 +0000)
tests/stty/basic-1

index 780b43678f28d604fa65b6546656967383e65c97..c53410f50a7299ed686fa4f5e3068a4a78b022e8 100755 (executable)
@@ -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'`