summaryrefslogtreecommitdiff
path: root/tests/stty
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-07-21 14:55:19 +0000
committerJim Meyering <jim@meyering.net>1999-07-21 14:55:19 +0000
commit1aa01e7b7b065661d20ec65b1813dbd2c358c8d2 (patch)
treeb77cd3e7b5c6c7ab38ca797bd1d83afa8bbf674f /tests/stty
parent8478414c5d3131db7604399f80a3e04f4ac4c162 (diff)
downloadcoreutils-1aa01e7b7b065661d20ec65b1813dbd2c358c8d2.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/stty')
-rwxr-xr-xtests/stty/basic-15
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/stty/basic-1 b/tests/stty/basic-1
index a91115d43..5bf6d01cb 100755
--- a/tests/stty/basic-1
+++ b/tests/stty/basic-1
@@ -26,7 +26,10 @@ stty --save > $saved_state || fail=1
stty `cat $saved_state` || fail=1
# Build a list of all boolean options stty accepts on this system.
-options=`stty -a|tail +2|tr ';' '\012'|sed '/ = /d;s/^ //'|tr -s ' -' '\012\012'`
+# Note the final tr has a portability hack. Using just `-' instead of
+# `;-' caused the vendor tr programs to hang on Solaris2 and to produce
+# bogus output on OSF4 & Irix5.
+options=`stty -a|tail +2|tr ';' '\012'|sed '/ = /d;s/^ //'|tr -d ';-'`
# Take them one at a time, with and without the leading `-'.
for opt in $options; do