Xref: utzoo comp.unix.questions:18365 unix-pc.general:4311 Path: utzoo!attcan!utgpu!watserv1!watmath!uunet!amgraf!cpsolv!rhg From: rhg@cpsolv.UUCP (Richard H. Gumpertz) Newsgroups: comp.unix.questions,unix-pc.general Subject: VISUAL/EDITOR = emacs in ksh Message-ID: <464@cpsolv.UUCP> Date: 11 Dec 89 16:48:41 GMT Reply-To: rhg@cpsolv.uucp (Richard H. Gumpertz) Organization: Computer Problem Solving, Leawood, Kansas Lines: 20 I am using ksh on a AT&T 7300 (operating system release 3.51, which is roughly equivalent to V 2) and have a few questions: 1) What is the difference between using VISUAL=emacs and EDITOR=emacs? Why should I prefer one over the other? 2) My .profile does VISUAL=emacs followed by export VISUAL. Although this defines $VISUAL, it does not appear to set emacs editing mode. For that I have to type VISUAL=emacs manually to the shell. Why does ksh look at just the variable and not the environment? What can I do to get around this? 3) I would like to run the equivalent of a .profile in every sub-ksh that I start. How do I go about doing that? That is, execute a script file and then enter interactive mode upon invocation of ksh. -- =============================================================================== | Richard H. Gumpertz rhg%cpsolv@uunet.uu.NET -or- ...uunet!amgraf!cpsolv!rhg | | Computer Problem Solving, 8905 Mohawk Lane, Leawood, Kansas 66206-1749 | ===============================================================================