Mercurial > hg > octave-lyh > gnulib-hg
changeset 11916:8de86f9d0def
Use /usr/xpg6/bin/tr when it exists.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 30 Aug 2009 23:43:52 +0200 |
parents | 95e2cbebda18 |
children | afaea9930971 |
files | ChangeLog tests/test-pipe-filter-gi1.sh tests/test-pipe-filter-ii1.sh |
diffstat | 3 files changed, 20 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-08-30 Bruno Haible <bruno@clisp.org> + + * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over + /usr/xpg4/bin/tr when it exists. + * tests/test-pipe-filter-gi1.sh: Likewise. + 2009-08-30 Bruno Haible <bruno@clisp.org> Work around deficient /usr/bin/id program on Solaris.
--- a/tests/test-pipe-filter-gi1.sh +++ b/tests/test-pipe-filter-gi1.sh @@ -2,10 +2,14 @@ # Find a 'tr' program that supports character ranges in the POSIX syntax. # Solaris /usr/bin/tr does not. -if test -f /usr/xpg4/bin/tr; then - TR=/usr/xpg4/bin/tr +if test -f /usr/xpg6/bin/tr; then + TR=/usr/xpg6/bin/tr else - TR=tr + if test -f /usr/xpg4/bin/tr; then + TR=/usr/xpg4/bin/tr + else + TR=tr + fi fi # A small file.
--- a/tests/test-pipe-filter-ii1.sh +++ b/tests/test-pipe-filter-ii1.sh @@ -2,10 +2,14 @@ # Find a 'tr' program that supports character ranges in the POSIX syntax. # Solaris /usr/bin/tr does not. -if test -f /usr/xpg4/bin/tr; then - TR=/usr/xpg4/bin/tr +if test -f /usr/xpg6/bin/tr; then + TR=/usr/xpg6/bin/tr else - TR=tr + if test -f /usr/xpg4/bin/tr; then + TR=/usr/xpg4/bin/tr + else + TR=tr + fi fi # A small file.