HP3000-L Archives

June 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Per Ostberg <[log in to unmask]>
Reply To:
Date:
Fri, 16 Jun 2000 10:26:55 +0200
Content-Type:
text/plain
Parts/Attachments:
Meddelandetext (46 lines)
My coworker recently discovered a bug in the print-command, kind of
exotic, but nonetheless caused us some pain to discover it was the
:print-command and not our programming that made output seem
indeterminate...

When printing interactively to $stdout, :print has a nice feature - it
stops printing when a page is written and asks (from :help-text)
(NEXT/EOF) CONTINUE?, now, if I enter a number greater than NEXT+1,
:print continues printing one line before I expected, and, stops
printing one line before (i.e. loosing one line!).

An example might make it clearer (parameter #5 (;PAGE=) sets
page-length, used here for brevity):
:print pfile,,,,4
record 1
record 2
record 3
record 4
(5/8) Continue?   [cr]
record 5
record 6
record 7
record 8
:do
:print pfile,,,,4
record 1
record 2
record 3
record 4
(5/8) Continue?  [7]
record 6
record 7
: {record 8 missing...}

Is it just us? we're on 5.5 pp6. Has it always been like this? (think of
the number of lines I've missed ;-) It is a bug, right? It's not me, is
it?-

/per
--------------------------------------------
Per Ostberg  / [log in to unmask]
phone +46-8-58581213 / fax +46-8-58587710
Huddinge University Hospital
ChemLab / C1 74 / S-141 86  HUDDINGE / SWEDEN
--------------------------------------------

ATOM RSS1 RSS2