mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
If the VISUAL or EDITOR environment variable is not set to a value matching *[Vv][Ii]* or *macs* at initialisation time, then ksh does not turn on any line editor. This is user-hostile. New users on Unix-like systems typically have a simple editor like nano preconfigured as their default, or may not have the VISUAL or EDITOR variable set at all. So if they try ksh, they find themselves without basic functionality such as arrow keys and probably go straight back to bash. The emacs line editor is by far the most widely used, especially among new users, so ksh should default to that. Most other shells already do this. src/cmd/ksh93/sh/main.c: sh_main(): - On an interactive shell, if on editor was turned on based on $VISUAL or $EDITOR, turn on emacs before reading input. |
||
|---|---|---|
| .. | ||
| cmd | ||
| lib | ||
| Mamfile | ||