From: jmc Date: Sat, 30 Dec 2017 07:32:09 +0000 (+0000) Subject: backslash also escapes newlines when quoted; X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b48dd22db6b9e0a99e73a9c7ec42f554abd4126e;p=openbsd backslash also escapes newlines when quoted; from kshe --- diff --git a/bin/ksh/sh.1 b/bin/ksh/sh.1 index 390419653a0..1fc0e0e2f04 100644 --- a/bin/ksh/sh.1 +++ b/bin/ksh/sh.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sh.1,v 1.145 2017/12/15 20:51:28 jmc Exp $ +.\" $OpenBSD: sh.1,v 1.146 2017/12/30 07:32:09 jmc Exp $ .\" .\" Copyright (c) 2015 Jason McIntyre .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: December 15 2017 $ +.Dd $Mdocdate: December 30 2017 $ .Dt SH 1 .Os .Sh NAME @@ -1165,7 +1165,7 @@ if the user wants to indicate to the shell not to interpret them as such. The following characters need quoting if their literal meaning is desired: .Bd -literal -offset indent | & ; < > ( ) $ \` \e " \(aq -* ? [ # ~ = % +* ? [ # ~ = % .Ed .Pp A backslash @@ -1190,7 +1190,7 @@ A backslash .Pq \e within double quotes retains its special meaning, but only when followed by a backquote, dollar sign, -double quote, or another backslash. +double quote, newline, or another backslash. An at sign .Pq @ within double quotes has a special meaning