From a99bb8baa0e3368b9001338fa421955c21c165bc Mon Sep 17 00:00:00 2001 From: tg Date: Wed, 3 Aug 2016 17:34:12 +0000 Subject: [PATCH] quote the &, for POSIX: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: | & ; < > ( ) $ ` \ " ' --- mksh.1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mksh.1 b/mksh.1 index 5ba4307..2e0aa67 100644 --- a/mksh.1 +++ b/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 $ .\"- .\" Copyright © 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, @@ -76,7 +76,7 @@ .\" with -mandoc, it might implement .Mx itself, but we want to .\" 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. .\" @@ -5864,7 +5864,7 @@ replaces the inserted text string with the next previously killed text string. .Pp The tab completion escapes characters the same way as the following code: .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 .Ss Vi editing mode .Em Note: