aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2025-11-02 10:57:21 -0800
committerCollin Funk <collin.funk1@gmail.com>2025-11-02 10:57:21 -0800
commit170509d41ff3d586c13d0236b16d2ad639d276da (patch)
tree032c20b479dfc2f0ef348b8c81d8025eea0dfb5e /tests
parentdate: diagnose fprintftime failure (diff)
downloadcoreutils-170509d41ff3d586c13d0236b16d2ad639d276da.tar.gz
coreutils-170509d41ff3d586c13d0236b16d2ad639d276da.zip
tests: stty: filter out ispeed and ospeed from boolean options
* tests/stty/stty-pairs.sh: Also ignore lines starting with ispeed and ospeed. * tests/stty/stty.sh: Likewise. Reported by Bernhard Voelker.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/stty/stty-pairs.sh2
-rwxr-xr-xtests/stty/stty.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/stty/stty-pairs.sh b/tests/stty/stty-pairs.sh
index aebbd7fe7..2af9ac78c 100755
--- a/tests/stty/stty-pairs.sh
+++ b/tests/stty/stty-pairs.sh
@@ -38,7 +38,7 @@ stty $(cat $saved_state) || fail=1
# Don't depend on terminal width. Put each option on its own line,
# remove all non-boolean ones, remove 'parenb' and 'cread' explicitly,
# then remove any leading hyphens.
-sed_del='/^speed/d;/^rows/d;/^columns/d;/ = /d;s/parenb//;s/cread//'
+sed_del='/^[io]*speed/d;/^rows/d;/^columns/d;/ = /d;s/parenb//;s/cread//'
options=$(stty -a | tr -s ';' '\n' | sed "s/^ //;$sed_del;s/-//g")
# Take them in pairs, with and without the leading '-'.
diff --git a/tests/stty/stty.sh b/tests/stty/stty.sh
index c0f74947a..b224ae41f 100755
--- a/tests/stty/stty.sh
+++ b/tests/stty/stty.sh
@@ -51,7 +51,7 @@ returns_ 1 stty -raw -a 2>/dev/null || fail=1
# Build a list of all boolean options stty accepts on this system.
# Don't depend on terminal width. Put each option on its own line,
# remove all non-boolean ones, then remove any leading hyphens.
-sed_del='/^speed/d;/^rows/d;/^columns/d;/ = /d'
+sed_del='/^[io]*speed/d;/^rows/d;/^columns/d;/ = /d'
options=$(stty -a | tr -s ';' '\n' | sed "s/^ //;$sed_del;s/-//g")
# Take them one at a time, with and without the leading '-'.