sync with reality

This commit is contained in:
tg
2009-11-21 23:21:23 +00:00
parent 398b5b7a60
commit aa31a51e5f

23
mksh.1
View File

@ -1,4 +1,4 @@
.\" $MirOS: src/bin/mksh/mksh.1,v 1.196 2009/11/17 21:49:42 tg Exp $ .\" $MirOS: src/bin/mksh/mksh.1,v 1.197 2009/11/21 23:21:23 tg Exp $
.\" $OpenBSD: ksh.1,v 1.129 2009/05/28 06:09:06 jmc Exp $ .\" $OpenBSD: ksh.1,v 1.129 2009/05/28 06:09:06 jmc Exp $
.\"- .\"-
.\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 .\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
@ -71,7 +71,7 @@
.\" with -mandoc, it might implement .Mx itself, but we want to .\" with -mandoc, it might implement .Mx itself, but we want to
.\" use our own definition. And .Dd must come *first*, always. .\" use our own definition. And .Dd must come *first*, always.
.\" .\"
.Dd $Mdocdate: November 17 2009 $ .Dd $Mdocdate: November 21 2009 $
.\" .\"
.\" Check which macro package we use .\" Check which macro package we use
.\" .\"
@ -2030,11 +2030,10 @@ The pattern elements have the following meaning:
.It \&? .It \&?
Matches any single character. Matches any single character.
.It \&* .It \&*
Matches any sequence of characters. Matches any sequence of octets.
.It [..] .It [..]
Matches any of the characters inside the brackets. Matches any of the octets inside the brackets.
Ranges of characters can be Ranges of octets can be specified by separating two octets by a
specified by separating two characters by a
.Ql \- .Ql \-
(e.g.\& (e.g.\&
.Dq [a0\-9] .Dq [a0\-9]
@ -2043,10 +2042,10 @@ matches the letter
or any digit). or any digit).
In order to represent itself, a In order to represent itself, a
.Ql \- .Ql \-
must either be quoted or the first or last character in the character list. must either be quoted or the first or last octet in the octet list.
Similarly, a Similarly, a
.Ql \&] .Ql \&]
must be quoted or the first character in the list if it is to represent itself must be quoted or the first octet in the list if it is to represent itself
instead of the end of the list. instead of the end of the list.
Also, a Also, a
.Ql \&! .Ql \&!
@ -2054,11 +2053,11 @@ appearing at the start of the list has special meaning (see below), so to
represent itself it must be quoted or appear later in the list. represent itself it must be quoted or appear later in the list.
.It [!..] .It [!..]
Like [..], Like [..],
except it matches any character not inside the brackets. except it matches any octet not inside the brackets.
.Sm off .Sm off
.It *( Ar pattern\*(Ba No ...\*(Ba Ar pattern ) .It *( Ar pattern\*(Ba No ...\*(Ba Ar pattern )
.Sm on .Sm on
Matches any string of characters that matches zero or more occurrences of the Matches any string of octets that matches zero or more occurrences of the
specified patterns. specified patterns.
Example: The pattern Example: The pattern
.Ic *(foo\*(Babar) .Ic *(foo\*(Babar)
@ -2071,7 +2070,7 @@ etc.
.Sm off .Sm off
.It +( Ar pattern\*(Ba No ...\*(Ba Ar pattern ) .It +( Ar pattern\*(Ba No ...\*(Ba Ar pattern )
.Sm on .Sm on
Matches any string of characters that matches one or more occurrences of the Matches any string of octets that matches one or more occurrences of the
specified patterns. specified patterns.
Example: The pattern Example: The pattern
.Ic +(foo\*(Babar) .Ic +(foo\*(Babar)
@ -2154,7 +2153,7 @@ with a trailing
.Pp .Pp
The POSIX character classes (i.e.\& The POSIX character classes (i.e.\&
.Pf [: Ns Ar class-name Ns :] .Pf [: Ns Ar class-name Ns :]
inside a [..] expression) are not yet implemented. inside a [..] expression) are not implemented.
.Ss Input/output redirection .Ss Input/output redirection
When a command is executed, its standard input, standard output, and standard When a command is executed, its standard input, standard output, and standard
error (file descriptors 0, 1, and 2, respectively) are normally inherited from error (file descriptors 0, 1, and 2, respectively) are normally inherited from