🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1855

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

#1855
From: Felix Lee
Date: Wed, 28 Nov 1990 23:02
14 lines
1015 bytes
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@cs.psu.edu
Technical Details
Message-ID: <Fvagach3@cs.psu.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!news
References: <4548@umbc3.UMBC.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!psuvax1!news
From: flee@guardian.cs.psu.edu (Felix Lee)
Newsgroups: comp.unix.shell
Subject: Re: Why does more(1) not leave an exit status?
Message-ID: <Fvagach3@cs.psu.edu>
Date: 28 Nov 90 23:02:10 GMT
References: <4548@umbc3.UMBC.EDU>
Sender: news@cs.psu.edu (Usenet)
Organization: Penn State Computer Science
Lines: 14
Nntp-Posting-Host: guardian.cs.psu.edu