OT: Where does Openserver pr command pickup date from?

Roger Cornelius rac at custom-mobility.com
Tue Dec 22 17:34:20 PST 2009


On 12/22/2009 17:33, Jean-Pierre A. Radley wrote:
> Roger Cornelius propounded (on Tue, Dec 22, 2009 at 02:59:11PM -0500):
> | On 12/22/2009 13:50, Mike Schwartz wrote:
> | >      I have some filepro "system"  lines that print some small raw text
> | > files using the SCO Openserver 5.0.5 "pr" command in conjunction with the
> | > "lp" command.
> | >  
> | >      All of a sudden in the header info, the wrong date and time started
> | > showing up.  The system date and time is correct.  Does anybody know where
> | > the "pr" command picks up the date and time?
> | >  
> | >      I don't think this is a filePro problem, because if I try to print them
> | > from an openserver command prompt, the same( wrong) date shows up. Pr seems
> | > to think it's August 8, 2008!
> | >  
> | >      I've tried Googling for an answer, but I wasn't able to find one.  The
> | > man page for "pr" in Openserver 5.0.5 didn't mention where it picks up the
> | > time.  
> | >  
> | 
> | man pr(C).  It uses the creation or modification time of the file.
> 
> Mike, if you thought the date shown in pr's output is today's date, no it
> isn't, it's the file's date.
> 
> But Roger, shouldn't a bug report be submitted to somebody or other
> (that man page must have been written over thirty years ago) to the
> effect that there ain't no creation date to be had for a file?

I hadn't caught that, but to be generous to the author, the modification
date IS the creation date if the file has never been modified, so maybe
he really meant to write "the date and time of creation/modification" ...

I no longer have a XENIX pr binary on medium I can read, but I do have a
XENIX 286 pr manpage, ca. 1989, which says "By default, the listing is
separated into pages, each headed by the page number, date and time, and
the name of the file." with no clue as to which date, atime, ctime,
mtime, or system date, they are referring to.
-- 
Roger Cornelius            rac at custom-mobility.com


More information about the Filepro-list mailing list