Why does more(1) not leave an exit status?

Felix Lee flee at guardian.cs.psu.edu
Thu Nov 29 10:02:10 AEST 1990


If more(1) or less(1) were to produce a different exit status for each
different type of exit action, you could build intelligent wrappers
around your pager.
  0 - normal exit (falling off the bottom)
  1 - quit (q)
  2 - next file (:n)
  3 - previous file (:p)
(and various error exits)

And then something like "zmore" would be able to deal with multiple
files properly.  And you might rewrite "rn" to allow using an external
pager, rather than its baroque internal version.
--
Felix Lee	flee at cs.psu.edu



More information about the Comp.unix.shell mailing list