diff options
author | yar <yar@FreeBSD.org> | 2008-08-24 13:47:53 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2008-08-24 13:47:53 +0000 |
commit | 97a6c454a4736c809a015abf8fec6ba4b7a9e79a (patch) | |
tree | 01e24dabcd4784fbd642e651aeeb17162d5f54c0 /usr.bin/sed | |
parent | 4e18e7c8f4389621030b64d990a22078f6d00056 (diff) | |
download | FreeBSD-src-97a6c454a4736c809a015abf8fec6ba4b7a9e79a.zip FreeBSD-src-97a6c454a4736c809a015abf8fec6ba4b7a9e79a.tar.gz |
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
Diffstat (limited to 'usr.bin/sed')
-rw-r--r-- | usr.bin/sed/sed.1 | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/usr.bin/sed/sed.1 b/usr.bin/sed/sed.1 index 71f3a9d..a40dbeb 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 |