Path: 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: 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 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