bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison submit patches


From: Simon Josefsson
Subject: Re: Bison submit patches
Date: Wed, 24 Aug 2022 11:54:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Bruno Haible <bruno@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

[Prev in Thread] Current Thread [Next in Thread]