Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rlgvax.UUCP Path: utzoo!utcs!lsuc!pesnta!hplabs!hao!seismo!rlgvax!guy From: guy@rlgvax.UUCP (Guy Harris) Newsgroups: net.unix-wizards Subject: Re: disallowing subshell in More Message-ID: <470@rlgvax.UUCP> Date: Wed, 13-Feb-85 00:35:42 EST Article-I.D.: rlgvax.470 Posted: Wed Feb 13 00:35:42 1985 Date-Received: Thu, 14-Feb-85 18:57:06 EST References: <346@haddock.UUCP> <6317@boring.UUCP> Organization: CCI Office Systems Group, Reston, VA Lines: 21 > I thought I'd throw in my 10 cents worth : > Setting $SHELL is *NOT* going to work. > > I remember using a games account, with SHELL set to something > funny. The way to get a shell was the following : > - Run a game that gave help. > - Ask for the helpfile (which was, of course, given to more) > - Startup 'vi' with the v command. > - do a ':set shell=/bin/sh' > - Type ':sh' > Et voila........ It's beginning to look like the law of diminishing returns is taking effect - you might want to write a simple pager that doesn't do anything other than page files. (I didn't even think about "more"s escape to "vi", because I never use it - that's one problem with big programs with a large set of features that few people are 100% familiar with.) Try "p", shown in Kernighan and Pike starting on p. 180. Guy Harris {seismo,ihnp4,allegra}!rlgvax!guy