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.
