Why does 'fortune' write on the fortunes.dat file?

Felix Lee flee at shire.cs.psu.edu
Fri Apr 14 00:13:20 AEST 1989


"fortune" doesn't pick a random fortune to print.  Strange but true!
What it does is print the next fortune that fits your command-line
options.  The next fortune is determined by reading (and writing) a
counter in the fortunes.dat header.  The randomness is in the order of
the string table.
--
Felix Lee	flee at shire.cs.psu.edu	*!psuvax1!shire!flee



More information about the Comp.unix.wizards mailing list