diff options
author | Jim Meyering <jim@meyering.net> | 1999-07-21 15:56:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-07-21 15:56:15 +0000 |
commit | c4731cc3f0bf26b06c26f24a429cca4ef749faba (patch) | |
tree | b7cade31ad209f0070874486f085db46cfcb3204 /tests/stty/basic-1 | |
parent | a19cffba7ef766755414348635836ab85a006252 (diff) | |
download | coreutils-c4731cc3f0bf26b06c26f24a429cca4ef749faba.tar.xz |
(options): Avoid Solaris' broken /usr/ucb/tr by
removing offending use of tr altogether and removing hyphens with sed.
Reported by Kaveh Ghazi.
Diffstat (limited to 'tests/stty/basic-1')
-rwxr-xr-x | tests/stty/basic-1 | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/stty/basic-1 b/tests/stty/basic-1 index 5bf6d01cb..5be8c7d75 100755 --- a/tests/stty/basic-1 +++ b/tests/stty/basic-1 @@ -26,10 +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. -# 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 ';-'` +options=`stty -a|tail +2|tr ';' '\012'|sed '/ = /d;s/^ //;s/-//g'` # Take them one at a time, with and without the leading `-'. for opt in $options; do |