[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tests: init.sh: work also with any non-GNU diff that support
From: |
Jim Meyering |
Subject: |
Re: [PATCH] tests: init.sh: work also with any non-GNU diff that supports -u |
Date: |
Fri, 02 Sep 2011 15:18:03 +0200 |
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 <address@hidden>
>
> * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
> not, use "diff -c".
Good idea. Thanks.