>>>>> On Wed, 24 Aug 2022 11:54:15 +0200, Simon Josefsson via Gnulib discussion >>>>> list <bug-gnulib@gnu.org> said:
Simon> Bruno Haible <br...@clisp.org> writes: >> In this case, you'll better modify the unit test to pipe the result >> through "tr -d '\r'". Simon> This is unrelated, but alas I've not found a more portable way to trim Simon> CR than this since some tr do not support \r: Simon> if echo solaris | tr -d '\r' | grep solais > /dev/null; then ^missing 'r' Simon> cr='\015' Simon> else Simon> cr='\r' Simon> fi Simon> # normalize output Simon> LC_ALL=C tr -d "$cr" < $TMPFILE > x$TMPFILE Are there tr that *donʼt* support '\015'? Robert --