Re: Bison submit patches
Robert Pluim <[email protected]> Thu, 25 Aug 2022 10:10:12 +0200
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.comp.parsers.bison.bugs |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On Wed, 24 Aug 2022 11:54:15 +0200, Simon Josefsson via Gnulib discussion list <[email protected]> said: Simon> Bruno Haible <[email protected]> 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 --