coreutils
[Top][All Lists]
Advanced

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

Re: pr: leading zeros omitted with certain arguments to the -n option


From: Pádraig Brady
Subject: Re: pr: leading zeros omitted with certain arguments to the -n option
Date: Wed, 24 Oct 2012 10:47:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

On 10/24/2012 10:12 AM, Ondrej Oprala wrote:
Hi,
we've had a bug report from one of our customers recently, saying
pr -nNUM doesn't zero-pad line numbers on output with certain
values of NUM (for example 1-11, 13-14, 16-17...). The problem
seems to be the faulty format string that I fixed in the patch
attached. I've also added 2 test cases in tests/misc/pr.pl to
exercise the output with problematic as well as ok NUM values.

I think the leading zeros is the inconsistent case.
I also checked solaris and netbsd and they pad with spaces.
So my previous patch to handle arbitrary -n should suffice.

thanks,
Pádraig.



reply via email to

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