diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2009-03-06 12:28:37 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2009-03-06 12:28:37 +0000 |
commit | fc71b0cfbcd45448367d66f52d21bf064ef1b107 (patch) | |
tree | eadea18b1d8b82980963fd97c587cf614e9c98bb /bin/ksh | |
parent | 45d97da207f0956c434198ce598b01a0b4e5fb88 (diff) |
after some discussion with millert, pull in the character class info
from glob(7) to the shell pages - they have their own glob stuff,
and pointing to glob(7) is just not helpful.
ok millert
Diffstat (limited to 'bin/ksh')
-rw-r--r-- | bin/ksh/ksh.1 | 23 | ||||
-rw-r--r-- | bin/ksh/sh.1 | 23 |
2 files changed, 40 insertions, 6 deletions
diff --git a/bin/ksh/ksh.1 b/bin/ksh/ksh.1 index 57d4d7dc833..4bd6b642e7a 100644 --- a/bin/ksh/ksh.1 +++ b/bin/ksh/ksh.1 @@ -1,8 +1,8 @@ -.\" $OpenBSD: ksh.1,v 1.127 2009/03/05 15:13:30 millert Exp $ +.\" $OpenBSD: ksh.1,v 1.128 2009/03/06 12:28:36 jmc Exp $ .\" .\" Public Domain .\" -.Dd $Mdocdate: March 5 2009 $ +.Dd $Mdocdate: March 6 2009 $ .Dt KSH 1 .Os .Sh NAME @@ -1882,6 +1882,24 @@ Also, a .Ql \&! 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. +.Pp +Within a bracket expression, the name of a +.Em character class +enclosed in +.Sq [: +and +.Sq :] +stands for the list of all characters belonging to that class. +Supported character classes: +.Bl -column "xdigit" "xdigit" "xdigit" -offset indent +.It Li "alnum" Ta "cntrl" Ta "lower" Ta "space" +.It Li "alpha" Ta "digit" Ta "print" Ta "upper" +.It Li "blank" Ta "graph" Ta "punct" Ta "xdigit" +.El +.Pp +These match characters using the macros specified in +.Xr ctype 3 . +A character class may not be used as an endpoint of a range. .It [!..] Like [..], except it matches any character not inside the brackets. @@ -5542,7 +5560,6 @@ Privileged shell profile. .Xr vi 1 , .Xr shells 5 , .Xr environ 7 , -.Xr glob 7 , .Xr script 7 .Rs .%A Morris Bolsky diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1 index bf2331d0b19..90e77b273c9 100644 --- a/bin/ksh/sh.1 +++ b/bin/ksh/sh.1 @@ -1,8 +1,8 @@ -.\" $OpenBSD: sh.1,v 1.81 2009/03/05 15:13:30 millert Exp $ +.\" $OpenBSD: sh.1,v 1.82 2009/03/06 12:28:36 jmc Exp $ .\" .\" Public Domain .\" -.Dd $Mdocdate: March 5 2009 $ +.Dd $Mdocdate: March 6 2009 $ .Dt SH 1 .Os .Sh NAME @@ -1366,6 +1366,24 @@ Also, a .Ql \&! 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. +.Pp +Within a bracket expression, the name of a +.Em character class +enclosed in +.Sq [: +and +.Sq :] +stands for the list of all characters belonging to that class. +Supported character classes: +.Bl -column "xdigit" "xdigit" "xdigit" -offset indent +.It Li "alnum" Ta "cntrl" Ta "lower" Ta "space" +.It Li "alpha" Ta "digit" Ta "print" Ta "upper" +.It Li "blank" Ta "graph" Ta "punct" Ta "xdigit" +.El +.Pp +These match characters using the macros specified in +.Xr ctype 3 . +A character class may not be used as an endpoint of a range. .It [!..] Like [..], except it matches any character not inside the brackets. @@ -3734,7 +3752,6 @@ Shell database. .Xr vi 1 , .Xr shells 5 , .Xr environ 7 , -.Xr glob 7 , .Xr script 7 .Rs .%A Morris Bolsky |