From 625451f9f4004511a3df7b37f3b9064e38eb6eb5 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Sun, 24 Aug 2008 13:47:53 +0000 Subject: Explicitly tell that one needs to start a context address with a backslash if he/she wants to use a non-traditional delimiter, i.e., anything other than a slash. That is, /abc/ works as is, but xabcx needs to be spelled as \xabcx. Add appropriate markup. Bump Dd. Checked with: IEEE Std 1003.1, 2004 Edition MFC after: 3 days --- usr.bin/sed/sed.1 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'usr.bin/sed/sed.1') diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1 index 71f3a9d688b1..a40dbeb20ed5 100644 --- a/usr.bin/sed/sed.1 +++ b/usr.bin/sed/sed.1 @@ -31,7 +31,7 @@ .\" @(#)sed.1 8.2 (Berkeley) 12/30/93 .\" $FreeBSD$ .\" -.Dd April 21, 2007 +.Dd August 24, 2008 .Dt SED 1 .Os .Sh NAME @@ -243,10 +243,17 @@ has the following two additions to regular expressions: In a context address, any character other than a backslash .Pq Dq \e or newline character may be used to delimit the regular expression. +The opening delimiter needs to be preceded by a backslash +unless it is a slash. +For example, the context address +.Li \exabcx +is equivalent to +.Li /abc/ . Also, putting a backslash character before the delimiting character -causes the character to be treated literally. -For example, in the context address \exabc\exdefx, the RE delimiter -is an +withing the regular expression causes the character to be treated literally. +For example, in the context address +.Li \exabc\exdefx , +the RE delimiter is an .Dq x and the second .Dq x -- cgit v1.2.3