Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site dalcs.UUCP Path: utzoo!linus!decvax!dartvax!dalcs!thompson From: thompson@dalcs.UUCP (Michael A. Thompson) Newsgroups: net.bugs.4bsd Subject: more bugs (4.2bsd) Message-ID: <307@dalcs.UUCP> Date: Mon, 9-Jan-84 18:10:55 EST Article-I.D.: dalcs.307 Posted: Mon Jan 9 18:10:55 1984 Date-Received: Tue, 10-Jan-84 05:42:08 EST Organization: Dalhousie U, Halifax N.S. Lines: 17 <*> <*> I have discovered a bug in more (sorry about the pun, could't help myself) as distributed in 4.2BSD. As distributed if more is in a pipe line and the user does a shell escape the escaped command takes it's input from the file being piped to more. The fix is as follows: 11a12,13 > ** modified by Michael A. Thompson, Dal. U. fix so shell escape uses ter- > ** minal for stdin. 1247a1250,1251 > if (!isatty(0)) > freopen(ttyname(1), "r", stdin); -- Signed: Michael A. Thompson (I'll be punished for this) Net address: ...{utcsrgv,dartvax}!dalcs!thompson Where in the world: Dalhousie University Halifax, Nova Scotia