summaryrefslogtreecommitdiff
path: root/tests/stty/basic-1
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-05 07:22:21 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-05 07:22:21 +0000
commita806fcf6406904cc137558347ae777a3cda892c1 (patch)
tree78047d506907c4b48291f49380addad7c5ece9e7 /tests/stty/basic-1
parent9be806694a7bf7a79012b73b13a7a10041b72760 (diff)
downloadcoreutils-a806fcf6406904cc137558347ae777a3cda892c1.tar.xz
Check for the fixed stty option-parsing bugs.
Diffstat (limited to 'tests/stty/basic-1')
-rwxr-xr-xtests/stty/basic-17
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/stty/basic-1 b/tests/stty/basic-1
index 780b43678..c53410f50 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'`