bug-textutils
[Top][All Lists]
Advanced

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

pr -t -l 60 -w 75 +x:y Somefile


From: Clifford Kite
Subject: pr -t -l 60 -w 75 +x:y Somefile
Date: Wed, 10 Apr 2002 08:44:43 -0500 (CDT)

Hello,

I get an unexpected result when I use

pr -t -l 60 -w 75 +x:y Somefile

where Somefile is 300 lines long, and x and y are integers such that
1<=x<=y<=5.  All the headers are absent, but the part of the file from
line (x-1)*60+1 to line 300 is written to standard output for *any* such
integer pair (x,y) in the interval [1,5].

I expected that only lines (x-1)*60+1 to y*60 (y-x+1 pages) would be
written to standard output.  There are y-x+1 pages in the output when
I use "pr -l 60 -w 75 +x:y Somefile" which adds headers and trailers.
But then less of the original text is included on each page of output
to make up for the added headers - something I'd like to avoid.

Is that the way pr is supposed to work with the -t option or is it a bug?

This occurs when using pr from either textutils 2.0 or 2.0.21, with the
kernel 2.4.18 and libc 2.1.3 (glibc).

Thanks for whatever information you can provide.

---
Clifford Kite            http://users3.ev1.net/~ckite/public_html/
corncob: Uptime 34 days 15 hours 27 minutes





reply via email to

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