Bourne shell -> POSIX shell

The FreeBSD shell is a POSIX compatible shell. It evolved over several
decades from the Almquist shell, which was preceeded a decade before
that by the Bourne shell. Most readers today have never seen a Bourne
shell. If someone wants to learn to use our shell, they need to look for
tutorials on the POSIX shell. Align descriptions through out the tree
with this reality, consistent with it's manual and common parlance.

We made a similar change to the doc tree in b4d6eb01540fe.

MFC after:		3 days
Reviewed by:		carlavilla
Differential Revision:	https://reviews.freebsd.org/D56382
This commit is contained in:
Alexander Ziaee
2026-04-14 09:02:53 -04:00
parent 934a35ac2b
commit dc140a9fc1
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# .profile - Bourne Shell startup script for login shells # .profile - POSIX Shell startup script for login shells
# #
# see also sh(1), environ(7). # see also sh(1), environ(7).
# #
+1 -1
View File
@@ -96,7 +96,7 @@ The following environment variable affects the execution of
.Bl -tag -width SHELL .Bl -tag -width SHELL
.It Ev SHELL .It Ev SHELL
Pathname of shell to use. Pathname of shell to use.
If this variable is not defined, the Bourne shell is used. If this variable is not defined, the POSIX shell is used.
.El .El
.Sh FILES .Sh FILES
.Bl -tag -width /bin/sh -compact .Bl -tag -width /bin/sh -compact
+1 -1
View File
@@ -227,7 +227,7 @@ The
field is the command interpreter the user prefers. field is the command interpreter the user prefers.
If the If the
.Ar shell .Ar shell
field is empty, the Bourne shell, field is empty, the POSIX shell,
.Pa /bin/sh , .Pa /bin/sh ,
is assumed. is assumed.
When altering a login shell, and not the super-user, the user When altering a login shell, and not the super-user, the user
+2 -2
View File
@@ -180,7 +180,7 @@ directory sizes.
nc(1) (or netcat) is useful not only for redirecting input/output to nc(1) (or netcat) is useful not only for redirecting input/output to
TCP or UDP connections, but also for proxying them with inetd(8). TCP or UDP connections, but also for proxying them with inetd(8).
% %
sh (the default Bourne shell in FreeBSD) supports command-line editing. Just sh (the default POSIX shell in FreeBSD) supports command-line editing. Just
``set -o emacs'' or ``set -o vi'' to enable it. Use "<TAB>" key to complete ``set -o emacs'' or ``set -o vi'' to enable it. Use "<TAB>" key to complete
paths. paths.
% %
@@ -415,7 +415,7 @@ if you leave the shell idle for more than 30 minutes.
% %
You can use aliases to decrease the amount of typing you need to do to get You can use aliases to decrease the amount of typing you need to do to get
commands you commonly use. Examples of fairly popular aliases include (in commands you commonly use. Examples of fairly popular aliases include (in
Bourne shell style, as in /bin/sh, bash, ksh, and zsh): POSIX shell style, as in /bin/sh, bash, ksh, and zsh):
alias lf="ls -FA" alias lf="ls -FA"
alias ll="ls -lA" alias ll="ls -lA"
+2 -2
View File
@@ -139,7 +139,7 @@ Forward terminal size changes on
The script ends when the forked shell (or command) exits (a The script ends when the forked shell (or command) exits (a
.Em control-D .Em control-D
to exit to exit
the Bourne shell the POSIX shell
.Pf ( Xr sh 1 ) , .Pf ( Xr sh 1 ) ,
and and
.Em exit , .Em exit ,
@@ -184,7 +184,7 @@ exists, the shell forked by
will be that shell. will be that shell.
If If
.Ev SHELL .Ev SHELL
is not set, the Bourne shell is not set, the POSIX shell
is assumed. is assumed.
.Pq Most shells set this variable automatically . .Pq Most shells set this variable automatically .
.El .El
+1 -1
View File
@@ -459,7 +459,7 @@ command appeared in
.An -nosplit .An -nosplit
This manual page and the original script, in Perl, was written by This manual page and the original script, in Perl, was written by
.An Wolfram Schneider Aq Mt wosch@FreeBSD.org . .An Wolfram Schneider Aq Mt wosch@FreeBSD.org .
The replacement script, written as a Bourne The replacement script, written as a POSIX
shell script with some enhancements, and the man page modification that shell script with some enhancements, and the man page modification that
came with it were done by came with it were done by
.An Mike Makonnen Aq Mt mtm@identd.net . .An Mike Makonnen Aq Mt mtm@identd.net .