git: 009be0917234 - main - sh.1: Reference editline(7)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 18 Feb 2026 18:21:31 UTC
The branch main has been updated by ziaee:
URL: https://cgit.FreeBSD.org/src/commit/?id=009be09172348c352db5d74f6ece2f4cb47ee193
commit 009be09172348c352db5d74f6ece2f4cb47ee193
Author: Artem Bunichev <tembun@bk.ru>
AuthorDate: 2026-02-18 18:16:38 +0000
Commit: Alexander Ziaee <ziaee@FreeBSD.org>
CommitDate: 2026-02-18 18:17:07 +0000
sh.1: Reference editline(7)
Key bindings for command line editing are documented in editline(7).
MFC after: 3 days
Reviewed by: jilles, ziaee
Differential Revision: https://reviews.freebsd.org/D54767
---
bin/sh/sh.1 | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/bin/sh/sh.1 b/bin/sh/sh.1
index dfe5419479a3..63755bbcf8a9 100644
--- a/bin/sh/sh.1
+++ b/bin/sh/sh.1
@@ -41,7 +41,7 @@
.\" the referee document. The original Standard can be obtained online at
.\" http://www.opengroup.org/unix/online.html.
.\"
-.Dd February 9, 2026
+.Dd February 17, 2026
.Dt SH 1
.Os
.Sh NAME
@@ -228,6 +228,8 @@ command line editor (disables the
.Fl V
option if it has been set;
set automatically when interactive on terminals).
+See
+.Sx Command Line Editing .
.It Fl e Li errexit
Exit immediately if any untested command fails in non-interactive mode.
The exit status of a command is considered to be
@@ -337,6 +339,8 @@ Enable the built-in
command line editor (disables
.Fl E
if it has been set).
+See
+.Sx Command Line Editing .
.It Fl v Li verbose
The shell writes its input to standard error
as it is read.
@@ -2064,7 +2068,8 @@ See
.Sx Job Control
for a list of job ID forms.
.It Ic bind Oo Fl aeklrsv Oc Oo Ar key Oo Ar command Oc Oc
-List or alter key bindings for the line editor.
+List or alter key bindings for the line editor,
+.Xr editline 7 .
This command is documented in
.Xr editrc 5 .
.It Ic break Op Ar num
@@ -3049,6 +3054,11 @@ Similarly, the
command can be used to enable a subset of
.Nm emacs Ns -style
command line editing features.
+.Pp
+Command line editing in
+.Nm
+is handled by the
+.Xr editline 7 .
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm :
@@ -3119,7 +3129,8 @@ will return the argument.
.Xr signal 3 ,
.Xr wctype 3 ,
.Xr editrc 5 ,
-.Xr shells 5
+.Xr shells 5 ,
+.Xr editline 7
.Sh HISTORY
A
.Nm