Bruno Haible <br...@clisp.org> writes:

> In this case, you'll better modify the unit test to pipe the result
> through "tr -d '\r'".

This is unrelated, but alas I've not found a more portable way to trim
CR than this since some tr do not support \r:

if echo solaris | tr -d '\r' | grep solais > /dev/null; then
  cr='\015'
else
  cr='\r'
fi
# normalize output
LC_ALL=C tr -d "$cr" < $TMPFILE > x$TMPFILE

/Simon

Attachment: signature.asc
Description: PGP signature

Reply via email to