note that ${foo//bar/baz} may need the pattern escaped; discovered by me
for # and %, and by Matt Lewandowsky («lewellyn:#ksh») for & as pattern.
This commit is contained in:
15
mksh.1
15
mksh.1
@@ -1,4 +1,4 @@
|
|||||||
.\" $MirOS: src/bin/mksh/mksh.1,v 1.170 2009/06/21 15:43:17 tg Exp $
|
.\" $MirOS: src/bin/mksh/mksh.1,v 1.171 2009/07/06 09:37:03 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
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
.el .xD \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
|
.el .xD \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
|
||||||
..
|
..
|
||||||
.\"-
|
.\"-
|
||||||
.Dd $Mdocdate: June 21 2009 $
|
.Dd $Mdocdate: July 6 2009 $
|
||||||
.Dt MKSH 1
|
.Dt MKSH 1
|
||||||
.Os MirBSD
|
.Os MirBSD
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@@ -1357,6 +1357,15 @@ Currently,
|
|||||||
must start with a space, opening parenthesis or digit to be recognised.
|
must start with a space, opening parenthesis or digit to be recognised.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
|
Note that
|
||||||
|
.Ar pattern
|
||||||
|
may need to be escaped as an extended globbing pattern
|
||||||
|
.Pq @(...) ,
|
||||||
|
with single quotes
|
||||||
|
.Pq \&'...\&'
|
||||||
|
or double quotes
|
||||||
|
.Pq \&"...\&" .
|
||||||
|
.Pp
|
||||||
The following special parameters are implicitly set by the shell and cannot be
|
The following special parameters are implicitly set by the shell and cannot be
|
||||||
set directly using assignments:
|
set directly using assignments:
|
||||||
.Bl -tag -width "1 ... 9"
|
.Bl -tag -width "1 ... 9"
|
||||||
@@ -2985,7 +2994,7 @@ This command is usually accessed with the predefined
|
|||||||
.Ic alias r=\*(aqfc \-e \-\*(aq
|
.Ic alias r=\*(aqfc \-e \-\*(aq
|
||||||
or by prefixing an interactive mode input line with
|
or by prefixing an interactive mode input line with
|
||||||
.Sq \&!
|
.Sq \&!
|
||||||
.Pq extension .
|
.Pq wbx extension .
|
||||||
.Pp
|
.Pp
|
||||||
.It Ic fg Op Ar job ...
|
.It Ic fg Op Ar job ...
|
||||||
Resume the specified job(s) in the foreground.
|
Resume the specified job(s) in the foreground.
|
||||||
|
Reference in New Issue
Block a user