summaryrefslogtreecommitdiff
path: root/bin/ksh/ksh.1
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2005-02-16 22:54:03 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2005-02-16 22:54:03 +0000
commita476ac9e9e7c5d935d8042ffe6c7cc73974adf92 (patch)
treedad6717ab52b4ba7ca52357d6b0e97bb687b240b /bin/ksh/ksh.1
parent3105e4ec8c2ed08168f4f7a463e9cebd5e73cde2 (diff)
a note about why we have both EDITOR and VISUAL env vars;
ok otto@ jaredy@
Diffstat (limited to 'bin/ksh/ksh.1')
-rw-r--r--bin/ksh/ksh.119
1 files changed, 18 insertions, 1 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1
index d57e3669d13..2823f10c39f 100644
--- a/bin/ksh/ksh.1
+++ b/bin/ksh/ksh.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: ksh.1,v 1.94 2005/02/16 12:35:10 jmc Exp $
+.\" $OpenBSD: ksh.1,v 1.95 2005/02/16 22:54:02 jmc Exp $
.\"
.\" Public Domain
.\"
@@ -1345,6 +1345,20 @@ interactive shells.
See the
.Ev VISUAL
parameter below for how this works.
+.Pp
+Note:
+traditionally,
+.Ev EDITOR
+was used to specify the name of an (old-style) line editor, such as
+.Xr ed 1 ,
+and
+.Ev VISUAL
+was used to specify a (new-style) screen editor, such as
+.Xr vi 1 .
+Hence if
+.Ev VISUAL
+is set, it overrides
+.Ev EDITOR .
.It Ev ENV
If this parameter is found to be set after any profile files are executed, the
expanded value is used as a shell startup file.
@@ -1711,6 +1725,9 @@ the
or
.Xr gmacs
(Gosling emacs) editing mode is enabled, respectively.
+See also the
+.Ev EDITOR
+parameter, above.
.El
.Ss Tilde expansion
Tilde expansion, which is done in parallel with parameter substitution, is done