[Top][All Lists]

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

Re: [Diffutils-devel] diffutils-3.6.17-d5ba on AIX 7

From: Bruno Haible
Subject: Re: [Diffutils-devel] diffutils-3.6.17-d5ba on AIX 7
Date: Fri, 28 Dec 2018 07:38:54 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

On AIX 7.1/PowerPC:

FAIL: colors
========================= colors.log ====================
printf: bad conversion
printf: bad conversion
FAIL colors (exit status: 1)

Indeed, /bin/sh does not have 'printf' built-in, and /usr/bin/printf
$ /usr/bin/printf '%*s-a' 10
printf: 3016-004 Cannot form a valid conversion.

But this works:
$ /usr/bin/printf '%10s-a'

The fix is thus to splice the count into the printf format string, like you did
in the 'grep' tests. Patch is attached; it fixes the test failure.

Attachment: 0001-tests-colors-Avoid-test-failure-on-AIX-7.patch
Description: Text Data

reply via email to

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