]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(options): Avoid Solaris' broken /usr/ucb/tr by
authorJim Meyering <jim@meyering.net>
Wed, 21 Jul 1999 15:56:15 +0000 (15:56 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 21 Jul 1999 15:56:15 +0000 (15:56 +0000)
removing offending use of tr altogether and removing hyphens with sed.
Reported by Kaveh Ghazi.

tests/stty/basic-1

index 5bf6d01cb4f028f5b930d9779d3d4785f569e249..5be8c7d752a8ad1d3f23085e670158b16d63607b 100755 (executable)
@@ -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