Re: [opensuse] help! How did EDITOR=/usr/bin/joe get set and how do I get vi back -- permanently?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



The Thursday 2008-07-31 at 01:37 -0500, David C. Rankin wrote:

Listmates,

Gremlins in my 10.3 server again. I went to edit a crontab and to my surprise, a blue screen editor appeared and I had no idea how to get out of it so I just hit ctrl+c to exit. Further investigation revealed that "joe" was now my default editor? joe who?

[00:57 nirvana/var/backup] # set | grep EDITOR
EDITOR=/usr/bin/joe
[00:57 nirvana/var/backup] # export EDITOR=/usr/bin/vi
[00:57 nirvana/var/backup] # set | grep EDITOR
EDITOR=/usr/bin/vi
_=EDITOR

Okay... :-)


Now I have an additional piece of environment set to "_=EDITOR". I killed it with "unset _".

Forget it, that's just the last command you run.


More troubling is how did "EDITOR=/usr/bin/joe" get set in the first place? This is a basic 10.3 server (Linux nirvana 2.6.22.18-0.2-default). I like vi, I wouldn't change it.

I would look at the chair keyboard-interface(s) for a culprit :-p

More frustrating, this seems to be set every time I open a new shell. I exit a shell, su to reopen another, and the thing is set to joe again. Where do I fix this for good? Thanks.



Just:

grep EDITOR *

and undo the changed file; should be .bashrc or .profile.


If not there, did you per chance "su" to root, without "-"? Then look at the settings for the user.

- -- Cheers,
Carlos E. R.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFIkY9WtTMYHG2NR9URAkdOAJ0bpPsHB5D1fHK9hbxhDd1p1JZX8ACfW9ZE
QUyTaltd7BxdxGFqCWtB7x0=
=PSK+
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • Re: select(), sending and receiving data
    ... >> You need to let your editor indent correctly your code. ... It should be more a Chat server ... A chat server doesn't wait for received packets. ... If your protocol calls for a first welcome message from the server, ...
    (comp.unix.programmer)
  • Re: edit asp site?
    ... Can I use one on ASP based site? ... change and upload if that will work but do not ... Definately use a text editor ... Set your system up as a web server, ...
    (alt.html)
  • Re: Light at the end of the tunnel - and its NOT a train !
    ... I want to use, as someone here phrased it, "some canned PHP ... support on this server. ... Parse error: ... Google "text editor" and you'll probably get more opinions than you can read. ...
    (comp.lang.php)
  • Re: edit asp site?
    ... change and upload if that will work but do not ... Definately use a text editor ... Set your system up as a web server, ... Although most good / decent web developers will charge an up-front fee ...
    (alt.html)
  • [opensuse] help! How did EDITOR=/usr/bin/joe get set and how do I get vi back -- permanently
    ... I went to edit a crontab and to my surprise, a blue screen editor appeared and I had no idea how to get out of it so I just hit ctrl+c to exit. ... Further investigation revealed that "joe" was now my default editor? ... This is a basic 10.3 server. ... I exit a shell, su to reopen another, and the thing is set to joe again. ...
    (SuSE)