[Top][All Lists]

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

Re: texinfo-6.8.90 pretest on mingw

From: Gavin Smith
Subject: Re: texinfo-6.8.90 pretest on mingw
Date: Sun, 23 Oct 2022 11:55:08 +0100

On Sun, Oct 23, 2022 at 12:58:34PM +0300, Eli Zaretskii wrote:
> This could be due to Diff.  I have long ago replaced the MSYS Diff
> with the following shell script (and gladly forgot about this issue):
>   #! /bin/sh
>   # diff --- like diff.exe but ignore trailing CR characters
>   /bin/real_diff --strip-trailing-cr $*
> where 'real_diff' is the original Diff program, renamed.
> So maybe the install-info test suite should do something similar.

We could use a shell variable DIFF in the tests and set

DIFF='diff --strip-trailing-cr'

when needed.

This would keep the CR handling contained and stop it spreading throughout
the code.

There doesn't appear to be a similar option for 'grep'.  However,
since it is just the one test, we can easily work around the problem
by taking the '$' out - the test in question would still work properly.

reply via email to

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