Bruno Haible wrote:
> Jim Meyering wrote:
>> FYI, I've just pushed this in Bruno's name:
>
> I see it pushed in coreutils, not in gnulib.
>
>> Rather than checking for GNU diff via --version, simply check
>> for support for -u itself.  Useful at least on OpenBSD 4.9.
>
> Also useful on AIX 7.1, IRIX 6.5, Solaris 10.

Thanks.   I added those to the list and pushed.

> And on AIX 6.1, HP-UX 11.31, OSF/1 5.1, Solaris 8, "diff -u" is not supported,
> but "diff -c" is. (As specified by POSIX:2001.) Therefore I would go one step
> further:
>
>
> 2011-09-02  Bruno Haible  <[email protected]>
>
>       * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
>       not, use "diff -c".

Good idea.  Thanks.

Reply via email to