finally document FPOSIX and FSH delta

This commit is contained in:
tg 2017-04-12 18:30:58 +00:00
parent cad44b9f01
commit a0993c690c
1 changed files with 34 additions and 9 deletions

43
mksh.1
View File

@ -1,4 +1,4 @@
.\" $MirOS: src/bin/mksh/mksh.1,v 1.441 2017/04/12 17:38:45 tg Exp $ .\" $MirOS: src/bin/mksh/mksh.1,v 1.442 2017/04/12 18:30:58 tg Exp $
.\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $ .\" $OpenBSD: ksh.1,v 1.160 2015/07/04 13:27:04 feinerer Exp $
.\"- .\"-
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, .\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
@ -5351,11 +5351,11 @@ Most other historic,
or opinionated differences can be disabled by using this mode; these are: or opinionated differences can be disabled by using this mode; these are:
.Bl -bullet .Bl -bullet
.It .It
The GNU The incompatible GNU
.Nm bash .Nm bash
I/O redirection I/O redirection
.Ic &\*(Gt Ns Ar file .Ic &\*(Gt Ns Ar file
is no longer supported. is not supported.
.It .It
File descriptors created by I/O redirections are inherited by File descriptors created by I/O redirections are inherited by
child processes. child processes.
@ -5365,20 +5365,34 @@ Numbers with a leading digit zero are interpreted as octal.
The The
.Nm echo .Nm echo
builtin does not interpret backslashes and only supports the exact option builtin does not interpret backslashes and only supports the exact option
.Dq Li \-n . .Fl n .
.It .It
\&... (list is incomplete and may change for R54) Alias expansion with a trailing space only reruns on command words.
.It
Tilde expansion follows POSIX instead of Korn shell rules.
.It
The exit status of
.Ic fg
is always 0.
.It
.Ic kill
.Fl l
only lists signal names, all in one line.
.It
.Ic getopts
does not accept options with a leading
.Ql + .
.El .El
.Ss SH mode .Ss SH mode
Compatibility mode; intended for use with legacy scripts that Compatibility mode; intended for use with legacy scripts that
cannot easily be fixed; the changes are as follows: cannot easily be fixed; the changes are as follows:
.Bl -bullet .Bl -bullet
.It .It
The GNU The incompatible GNU
.Nm bash .Nm bash
I/O redirection I/O redirection
.Ic &\*(Gt Ns Ar file .Ic &\*(Gt Ns Ar file
is no longer supported. is not supported.
.It .It
File descriptors created by I/O redirections are inherited by File descriptors created by I/O redirections are inherited by
child processes. child processes.
@ -5386,7 +5400,9 @@ child processes.
The The
.Nm echo .Nm echo
builtin does not interpret backslashes and only supports the exact option builtin does not interpret backslashes and only supports the exact option
.Dq Li \-n . .Fl n ,
unless built with
.Ev \-DMKSH_MIDNIGHTBSD01ASH_COMPAT .
.It .It
The substitution operations The substitution operations
.Sm off .Sm off
@ -5416,7 +5432,16 @@ and
.Xc .Xc
wrongly do not require a parenthesis to be escaped and do not parse extglobs. wrongly do not require a parenthesis to be escaped and do not parse extglobs.
.It .It
\&... (list is incomplete and may change for R54) The getopt construct from
.Xr lksh 1
passes through the errorlevel.
.It
.Nm sh
.Fl c
eats a leading
.Fl \-
if built with
.Ev \-DMKSH_MIDNIGHTBSD01ASH_COMPAT .
.El .El
.Ss Interactive input line editing .Ss Interactive input line editing
The shell supports three modes of reading command lines from a The shell supports three modes of reading command lines from a