Hi Tomas, On Wed, Jun 11, 2008 at 09:39:09AM +0100, Tomas Bodzar wrote: | As I read deeper now I found this : | | Note: traditionally, EDITOR was used to specify the name of an | (old-style) line editor, such as ed(1), and VISUAL was used | to | specify a (new-style) screen editor, such as vi(1). Hence if | VISUAL is set, it overrides EDITOR. | | I don't have VISUAL set and EDITOR was used for line editor.Maybe this? | Screen editor set in variable for line editor? - don't know how it's set | internal.
I don't quite understand what you're asking. Do you want command history in your ksh ? If you do, you don't have to change anything (HISTSIZE should be 500 by default). If you don't, export HISTSIZE=1. If you want persistent history over different login sessions, export HISTFILE=~/.ksh-history. I understood your question to mean that you want history and you want to use the arrow keys to navigate through your history. If you export EDITOR=vi, you must set -o emacs for this to work. Alternatively, you can export EDITOR=emacs or learn to use vi-style commandline editing. Again, please read the manual page for the different environment variables. Also read the sections on 'Emacs editing mode' and 'Vi editing mode'. They explain this in quite a bit of detail. Personally, I've been using vi-style commandline editing for many, many moons now and I like it very much. Since you export EDITOR=vi (indicating that you know vi and want to use it), you may want to give this a try to see if you like it too. Cheers, Paul 'WEiRD' de Weerd -- >++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+ +++++++++++>-]<.>++[<------------>-]<+.--------------.[-] http://www.weirdnet.nl/