Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!ukc!edcastle!aiai!richard From: richard@aiai.ed.ac.uk (Richard Tobin) Newsgroups: comp.unix.wizards Subject: Re: Why is 'more' giving the 'next file' prompt? Message-ID: <2369@skye.ed.ac.uk> Date: 4 May 90 13:15:21 GMT References: <1990May3.160744.25250@bath.ac.uk> Reply-To: richard@aiai.UUCP (Richard Tobin) Organization: AIAI, University of Edinburgh, Scotland Lines: 21 In article <1990May3.160744.25250@bath.ac.uk> exspes@bath.ac.uk (P E Smee) writes: > cat fred | csh -c 'cat >tempxxx ; more tempxxx' > >Before 'more' puts anything out, it gives the 'Next file (tempxxx):' >prompt. Try these: more /etc/group < /etc/group more /etc/group < /dev/null more /etc/group < /dev/tty It seems that rather than reading its standard input only if no file arguments are given, more read its standard input unless it's a terminal. My Sun manual doesn't document this. -- Richard -- Richard Tobin, JANET: R.Tobin@uk.ac.ed AI Applications Institute, ARPA: R.Tobin%uk.ac.ed@nsfnet-relay.ac.uk Edinburgh University. UUCP: ...!ukc!ed.ac.uk!R.Tobin