Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!seismo!dimacs.rutgers.edu!aramis.rutgers.edu!paul.rutgers.edu!njin!dblack From: dblack@pilot.njin.net (David Alan Black) Newsgroups: comp.unix.questions Subject: setting variable on Bourne-shell startup Keywords: shell variable Message-ID: Date: 11 Sep 90 02:17:06 GMT Distribution: usa Organization: NJ InterCampus Network, New Brunswick, N.J. Lines: 31 Based on what I've read in TFM, I've tried to use ".profile" to create and export an EDITOR variable (namely, vi - my main purpose here is to circumvent emacs). Simply put, I can't get it to work. Even when .profile says: EDITOR=vi export EDITOR and I say %sh I end up in the Bourne shell (which is good) with EDITOR pointing at emacs (which isn't good). Eventually, I would like to put a "sh" in .login so as to bypass the C-shell. But I don't want to have to change EDITOR manually every time. With thanks for any responses, David Black dblack@pilot.njin.net "What competition?" Mrs. Emma Peel