🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1823

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

#1823
From: rouben
Date: Wed, 28 Nov 1990 17:26
15 lines
1187 bytes
On a couple of different systems I have tried, more(1) always exits
with status 0.  I would have expected more(1) to exit with a not-zero
status when invoked with a non-existent file as its standin.

Both cat(1) and tail(1) exit with status 1 when trying to open a 
non-existent file.  Why not more(1)?

Is this due to an oversight or due to a conscious decision?  Does 
anyone know?

--
Rouben Rostamian                            Telephone: (301) 455-2458
Department of Mathematics and Statistics    e-mail:
University of Maryland Baltimore County     bitnet: rostamian@umbc
Baltimore, MD 21228,  U.S.A.                internet: rostamian@umbc3.umbc.edu
Technical Details
Message-ID: <4548@umbc3.UMBC.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!bu.edu!purdue!haven!umbc3!math9.math.umbc.edu!rouben

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!bu.edu!purdue!haven!umbc3!math9.math.umbc.edu!rouben
From: rouben@math9.math.umbc.edu
Newsgroups: comp.unix.shell,comp.unix.questions
Subject: Why does more(1) not leave an exit status?
Message-ID: <4548@umbc3.UMBC.EDU>
Date: 28 Nov 90 17:26:46 GMT
Sender: newspost@umbc3.UMBC.EDU
Reply-To: rouben@math9.math.umbc.edu ()
Organization: Mathematics Department University of Maryland, Baltimore County
Lines: 15