coreutils
[Top][All Lists]
Advanced

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

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


From: Ondrej Oprala
Subject: pr: leading zeros omitted with certain arguments to the -n option
Date: Wed, 24 Oct 2012 11:12:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121009 Thunderbird/16.0

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.
Cheers,
Ondrej

Attachment: DIFF
Description: Text document


reply via email to

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