mirror of
https://github.com/coreutils/coreutils.git
synced 2025-01-08 17:13:32 +08:00
(options): Avoid Solaris' broken /usr/ucb/tr by
removing offending use of tr altogether and removing hyphens with sed. Reported by Kaveh Ghazi.
This commit is contained in:
parent
a19cffba7e
commit
c4731cc3f0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user