summaryrefslogtreecommitdiff
path: root/tests/stty/basic-1
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-05-25 16:43:57 +0000
committerJim Meyering <jim@meyering.net>1999-05-25 16:43:57 +0000
commit032571f565ec78d420d83caffa408d2eb47fc3f6 (patch)
tree1a1633b6283096fe688e7ec10fedf4ffa8bf04f5 /tests/stty/basic-1
parentb38198f36553301d2087fac7e60938f8b3dfc77b (diff)
downloadcoreutils-032571f565ec78d420d83caffa408d2eb47fc3f6.tar.xz
Fix non-portable use of `tr' that caused this test
to fail when run with a SysV-style tr. Based on a patch from Kaveh Ghazi.
Diffstat (limited to 'tests/stty/basic-1')
-rwxr-xr-xtests/stty/basic-12
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stty/basic-1 b/tests/stty/basic-1
index 9fcb8eacd..a91115d43 100755
--- a/tests/stty/basic-1
+++ b/tests/stty/basic-1
@@ -26,7 +26,7 @@ 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'`
+options=`stty -a|tail +2|tr ';' '\012'|sed '/ = /d;s/^ //'|tr -s ' -' '\012\012'`
# Take them one at a time, with and without the leading `-'.
for opt in $options; do