Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!ames!amdahl!oliveb!sun!gorodish!guy From: guy%gorodish@Sun.COM (Guy Harris) Newsgroups: comp.sys.att Subject: Re: a few questions on the 3B1 Message-ID: <31868@sun.uucp> Date: Fri, 23-Oct-87 17:34:15 EST Article-I.D.: sun.31868 Posted: Fri Oct 23 17:34:15 1987 Date-Received: Sun, 25-Oct-87 18:36:29 EST References: <1913@gryphon.CTS.COM> <144800006@tiger.UUCP> <121@teletron.UUCP> Sender: news@sun.uucp Lines: 17 > Well, there is a shell parameter called IFS (internal field separator) which > delimits tokens to sh. If you change IFS to also include 'p' (as well as > space, tab and newline), the 'export' line becomes 'ex ort'. Presto, you > are in the editor, from which you can do a shell escape. The fix to this particular trick is to set IFS as the first thing your script does (no, an assignment that sets IFS doesn't depend on the setting of IFS; I didn't believe it until I tried it); while you're at it, make sure you set PATH right afterwards. For those of you not sure how you *can* set IFS as part of logging in, note that "login" in S5 takes a list of environment variable settings as optional arguments, and that "getty" will pass arguments of that sort to "login"; the only ones the manual page claims "login" *won't* change are PATH and SHELL. Guy Harris {ihnp4, decvax, seismo, decwrl, ...}!sun!guy guy@sun.com