quote the &, for POSIX:
An ordinary character is a pattern that shall match itself. It can be any character in the supported character set except for NUL, those special shell characters in [199]Quoting that require quoting, and the following three special ⇓ The application shall quote the following characters if they are to represent themselves: | & ; < > ( ) $ ` \ " ' <space> <tab> <newline>
This commit is contained in:
6
mksh.1
6
mksh.1
@ -1,4 +1,4 @@
|
|||||||
.\" $MirOS: src/bin/mksh/mksh.1,v 1.409 2016/08/01 21:38:04 tg Exp $
|
.\" $MirOS: src/bin/mksh/mksh.1,v 1.410 2016/08/03 17:34:12 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,
|
||||||
@ -76,7 +76,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: August 1 2016 $
|
.Dd $Mdocdate: August 3 2016 $
|
||||||
.\"
|
.\"
|
||||||
.\" Check which macro package we use, and do other -mdoc setup.
|
.\" Check which macro package we use, and do other -mdoc setup.
|
||||||
.\"
|
.\"
|
||||||
@ -5864,7 +5864,7 @@ replaces the inserted text string with the next previously killed text string.
|
|||||||
.Pp
|
.Pp
|
||||||
The tab completion escapes characters the same way as the following code:
|
The tab completion escapes characters the same way as the following code:
|
||||||
.Bd -literal
|
.Bd -literal
|
||||||
print \-nr \-\- "${x@/[\e"\-\e$&\-*:\-?[\e\e\e\`{\-\e}${IFS\-$\*(aq \et\en\*(aq}]/\e\e$KSH_MATCH}"
|
print \-nr \-\- "${x@/[\e"\-\e$\e&\-*:\-?[\e\e\e\`{\-\e}${IFS\-$\*(aq \et\en\*(aq}]/\e\e$KSH_MATCH}"
|
||||||
.Ed
|
.Ed
|
||||||
.Ss Vi editing mode
|
.Ss Vi editing mode
|
||||||
.Em Note:
|
.Em Note:
|
||||||
|
Reference in New Issue
Block a user