[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new snapshot available: coreutils-8.27.103-db8d1
From: |
Pádraig Brady |
Subject: |
Re: new snapshot available: coreutils-8.27.103-db8d1 |
Date: |
Thu, 31 Aug 2017 19:45:14 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 31/08/17 06:02, Eric Blake wrote:
> On 08/30/2017 09:12 PM, Pádraig Brady wrote:
>
>>> FAIL: tests/ln/sf-1
>>> [...]
>>> + printf %0*d 256 0
>>> ash: %0*d: invalid format
>>
>>> (I guess printf(1) in Busybox's "ash" does not accept this format).
>>
>> Indeed:
>> $ sudo dnf install busybox
>> $ busybox ash -c 'printf %0*d 256 0'
>> ash: %0*d: invalid format
>>
>> Since this is the only ash specific issue it seems, I'll avoid like:
>>
>> -long_name=$(printf '%0*d' $name_max_plus1 0)
>> +long_name=$(yes 0 | head -n$name_max_plus1 | tr -d '\n')
>
> Couldn't we also ensure that we are using coreutils' printf, as in $(env
> printf '%0*d' ...), so that we aren't depending upon sh's builtins?
Indeed that would be best.
I went with the more portable $(printf '%*s' $name_max_plus1 ...)
before I received this.
cheers,
Pádraig
- Re: [platform-testers] new snapshot available: coreutils-8.27.99-3ebdc3, (continued)
new snapshot available: coreutils-8.27.108-2ba96, Pádraig Brady, 2017/08/31