🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #214

Bug in pr

#214
From: Alan Watson
Date: Thu, 23 Jul 1992 12:36
23 lines
945 bytes
pr seems to have problems finishing the first column on the final page
of two-column output unless it is asked to balance the final page.

Version 1.3 running on a Decstation 5000/200 under Ultrix 4.2 and
compiled with gcc 2.1.

Try:

#! /bin/sh

# create a 100 line file called `input'
test -f input && rm input
touch input
for x in 0 1 2 3 4 5 6 7 8 9 ; do
  for y in 0 1 2 3 4 5 6 7 8 9 ; do
    echo $x$y >>input
  done
done

# wc should always give 100 words.
wc <input		# right
pr -2tb input | wc	# right
pr -2t  input | wc	# wrong
Technical Details
Message-ID: <9207232236.AA20571@uwast.astro.wisc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!uwast.astro.wisc.edu!alan

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!uwast.astro.wisc.edu!alan
From: alan@uwast.astro.wisc.edu (Alan Watson)
Subject: Bug in pr
Message-ID: <9207232236.AA20571@uwast.astro.wisc.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 23 Jul 1992 12:36:08 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 27