From: schwarze Date: Thu, 15 Jul 2010 20:51:38 +0000 (+0000) Subject: More delimiters that need quoting inside macros, hunted down by jmc@, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fb96007bea445b53c8b2866f5a8a580d2bce8e2d;p=openbsd More delimiters that need quoting inside macros, hunted down by jmc@, who asked me to commit because he is just running out of the door. --- diff --git a/games/sail/sail.6 b/games/sail/sail.6 index 44754892181..ad82a380b49 100644 --- a/games/sail/sail.6 +++ b/games/sail/sail.6 @@ -1,4 +1,4 @@ -.\" $OpenBSD: sail.6,v 1.18 2010/03/26 19:30:40 jmc Exp $ +.\" $OpenBSD: sail.6,v 1.19 2010/07/15 20:51:38 schwarze Exp $ .\" $NetBSD: sail.6,v 1.4 1995/04/22 10:37:24 cgd Exp $ .\" .\" Copyright (c) 1988, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)sail.6 8.2 (Berkeley) 12/30/93 .\" -.Dd $Mdocdate: March 26 2010 $ +.Dd $Mdocdate: July 15 2010 $ .Dt SAIL 6 .Os .Sh NAME @@ -331,8 +331,8 @@ In addition, the ship number is changed to .Sq & , .Sq ' , -.Sq ( , -.Sq ) , +.Sq \&( , +.Sq \&) , .Sq * , or .Sq + diff --git a/lib/libc/gen/glob.3 b/lib/libc/gen/glob.3 index 7d4621d5307..8f3bb81d53c 100644 --- a/lib/libc/gen/glob.3 +++ b/lib/libc/gen/glob.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: glob.3,v 1.25 2009/03/05 15:13:30 millert Exp $ +.\" $OpenBSD: glob.3,v 1.26 2010/07/15 20:51:38 schwarze Exp $ .\" .\" Copyright (c) 1989, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: March 5 2009 $ +.Dd $Mdocdate: July 15 2010 $ .Dt GLOB 3 .Os .Sh NAME @@ -78,7 +78,7 @@ that contains any of the special characters .Ql * , .Ql \&? , or -.Ql [ . +.Ql \&[ . .Pp The number of matched pathnames is stored in the .Fa gl_pathc @@ -239,7 +239,7 @@ if it does not contain any of the special characters .Ql * , .Ql \&? , or -.Ql [ . +.Ql \&[ . .Dv GLOB_NOMAGIC is provided to simplify implementing the historic .Xr csh 1 @@ -347,7 +347,7 @@ contained any of the special characters .Ql * , .Ql \&? , or -.Ql [ , +.Ql \&[ , cleared if not. .It Fa gl_pathv Contains a pointer to a null-terminated list of matched pathnames. diff --git a/lib/libc/regex/re_format.7 b/lib/libc/regex/re_format.7 index 0c0928716f4..72887175209 100644 --- a/lib/libc/regex/re_format.7 +++ b/lib/libc/regex/re_format.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: re_format.7,v 1.14 2007/05/31 19:19:30 jmc Exp $ +.\" $OpenBSD: re_format.7,v 1.15 2010/07/15 20:51:38 schwarze Exp $ .\" .\" Copyright (c) 1997, Phillip F Knaack. All rights reserved. .\" @@ -35,7 +35,7 @@ .\" .\" @(#)re_format.7 8.3 (Berkeley) 3/20/94 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: July 15 2010 $ .Dt RE_FORMAT 7 .Os .Sh NAME @@ -214,7 +214,7 @@ and .Sq .] to make it a collating element (see below). With the exception of these and some combinations using -.Sq [ +.Sq \&[ (see next paragraphs), all other special characters, including .Sq \e , @@ -539,7 +539,7 @@ The parentheses for nested subexpressions are and .Sq \e) , with -.Sq ( +.Sq \&( and .Sq )\& by themselves ordinary characters. @@ -733,7 +733,7 @@ Having two kinds of REs is a botch. The current POSIX spec says that .Sq )\& is an ordinary character in the absence of an unmatched -.Sq ( ; +.Sq \&( ; this was an unintentional result of a wording error, and change is likely. Avoid relying on it. diff --git a/usr.bin/ctags/ctags.1 b/usr.bin/ctags/ctags.1 index cd03158c3db..da01a44e2b4 100644 --- a/usr.bin/ctags/ctags.1 +++ b/usr.bin/ctags/ctags.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ctags.1,v 1.18 2009/02/10 19:24:17 jmc Exp $ +.\" $OpenBSD: ctags.1,v 1.19 2010/07/15 20:51:38 schwarze Exp $ .\" $NetBSD: ctags.1,v 1.4 1995/03/26 20:14:04 glass Exp $ .\" .\" Copyright (c) 1987, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)ctags.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: February 10 2009 $ +.Dd $Mdocdate: July 15 2010 $ .Dt CTAGS 1 .Os .Sh NAME @@ -141,9 +141,9 @@ Files whose names end in are assumed to be lisp files if their first non-blank character is .Ql \&; , -.Ql ( , +.Ql \&( , or -.Ql [ , +.Ql \&[ , otherwise, they are treated as lex files. Other files are first examined to see if they diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index fa9211bf7b5..ae5d7774660 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: find.1,v 1.77 2010/02/03 00:08:15 schwarze Exp $ +.\" $OpenBSD: find.1,v 1.78 2010/07/15 20:51:38 schwarze Exp $ .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -31,7 +31,7 @@ .\" .\" from: @(#)find.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: February 3 2010 $ +.Dd $Mdocdate: July 15 2010 $ .Dt FIND 1 .Os .Sh NAME @@ -627,10 +627,10 @@ The special characters used by are also special characters to many shell programs. In particular, the characters .Ql * , -.Ql [ , +.Ql \&[ , .Ql \&] , .Ql \&? , -.Ql ( , +.Ql \&( , .Ql \&) , .Ql \&! , .Ql \e , diff --git a/usr.bin/ftp/ftp.1 b/usr.bin/ftp/ftp.1 index 1c89148a180..e049b33484b 100644 --- a/usr.bin/ftp/ftp.1 +++ b/usr.bin/ftp/ftp.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ftp.1,v 1.79 2009/08/09 20:16:39 jmc Exp $ +.\" $OpenBSD: ftp.1,v 1.80 2010/07/15 20:51:38 schwarze Exp $ .\" $NetBSD: ftp.1,v 1.22 1997/08/18 10:20:22 lukem Exp $ .\" .\" Copyright (c) 1985, 1989, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)ftp.1 8.3 (Berkeley) 10/9/94 .\" -.Dd $Mdocdate: August 9 2009 $ +.Dd $Mdocdate: July 15 2010 $ .Dt FTP 1 .Os .Sh NAME @@ -809,7 +809,7 @@ Use the character to prevent special treatment of the .Ql $ , -.Ql [ , +.Ql \&[ , .Ql \&] , and .Ql \&, diff --git a/usr.bin/indent/indent.1 b/usr.bin/indent/indent.1 index 9825328abed..526e6bdbbbb 100644 --- a/usr.bin/indent/indent.1 +++ b/usr.bin/indent/indent.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: indent.1,v 1.17 2009/05/29 09:07:29 sobrado Exp $ +.\" $OpenBSD: indent.1,v 1.18 2010/07/15 20:51:38 schwarze Exp $ .\" .\" Copyright (c) 1980, 1990, 1993 .\" The Regents of the University of California. @@ -32,7 +32,7 @@ .\" .\" from: @(#)indent.1 8.1 (Berkeley) 7/1/93 .\" -.Dd $Mdocdate: May 29 2009 $ +.Dd $Mdocdate: July 15 2010 $ .Dt INDENT 1 .Os .Sh NAME @@ -327,7 +327,7 @@ If true .Pq Fl pcs all procedure calls will have a space inserted between the name and the -.Ql ( . +.Ql \&( . The default is .Fl npcs . .It Fl psl , npsl diff --git a/usr.bin/lex/flex.1 b/usr.bin/lex/flex.1 index 55ccb45f3aa..d24f8ed89c5 100644 --- a/usr.bin/lex/flex.1 +++ b/usr.bin/lex/flex.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: flex.1,v 1.25 2009/10/22 12:35:53 sobrado Exp $ +.\" $OpenBSD: flex.1,v 1.26 2010/07/15 20:51:38 schwarze Exp $ .\" .\" Copyright (c) 1990 The Regents of the University of California. .\" All rights reserved. @@ -29,7 +29,7 @@ .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR .\" PURPOSE. .\" -.Dd $Mdocdate: October 22 2009 $ +.Dd $Mdocdate: July 15 2010 $ .Dt FLEX 1 .Os .Sh NAME @@ -597,7 +597,7 @@ These are expressions enclosed inside and .Sq :] delimiters (which themselves must appear between the -.Sq [ +.Sq \&[ and .Sq ]\& of the diff --git a/usr.bin/locate/locate/locate.1 b/usr.bin/locate/locate/locate.1 index 46c88f2c8ed..056f0afb9b9 100644 --- a/usr.bin/locate/locate/locate.1 +++ b/usr.bin/locate/locate/locate.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: locate.1,v 1.27 2008/07/26 10:57:09 jmc Exp $ +.\" $OpenBSD: locate.1,v 1.28 2010/07/15 20:51:38 schwarze Exp $ .\" .\" Copyright (c) 1995 Wolfram Schneider . Berlin. .\" Copyright (c) 1990, 1993 @@ -29,9 +29,9 @@ .\" SUCH DAMAGE. .\" .\" @(#)locate.1 8.1 (Berkeley) 6/6/93 -.\" $Id: locate.1,v 1.27 2008/07/26 10:57:09 jmc Exp $ +.\" $Id: locate.1,v 1.28 2010/07/15 20:51:38 schwarze Exp $ .\" -.Dd $Mdocdate: July 26 2008 $ +.Dd $Mdocdate: July 15 2010 $ .Dt LOCATE 1 .Os .Sh NAME @@ -56,7 +56,7 @@ Shell globbing and quoting characters .Pf ( Ql * , .Ql \&? , .Ql \e , -.Ql [ , +.Ql \&[ , and .Ql \&] ) may be used in diff --git a/usr.bin/oldrdist/oldrdist.1 b/usr.bin/oldrdist/oldrdist.1 index 4a517138d93..bcd65b0e17d 100644 --- a/usr.bin/oldrdist/oldrdist.1 +++ b/usr.bin/oldrdist/oldrdist.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: oldrdist.1,v 1.18 2010/02/18 13:39:21 schwarze Exp $ +.\" $OpenBSD: oldrdist.1,v 1.19 2010/07/15 20:51:38 schwarze Exp $ .\" .\" Copyright (c) 1985, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\" .\" from: @(#)rdist.1 8.2 (Berkeley) 12/30/93 .\" -.Dd $Mdocdate: February 18 2010 $ +.Dd $Mdocdate: July 15 2010 $ .Dt OLDRDIST 1 .Os .Sh NAME @@ -242,7 +242,7 @@ or .Ed .Pp The shell meta-characters -.Ql [ , +.Ql \&[ , .Ql \&] , .Ql { , .Ql } , diff --git a/usr.bin/tr/tr.1 b/usr.bin/tr/tr.1 index c172b1daf13..fb2046d11b1 100644 --- a/usr.bin/tr/tr.1 +++ b/usr.bin/tr/tr.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tr.1,v 1.15 2010/04/05 16:44:52 deraadt Exp $ +.\" $OpenBSD: tr.1,v 1.16 2010/07/15 20:51:38 schwarze Exp $ .\" $NetBSD: tr.1,v 1.5 1994/12/07 08:35:13 jtc Exp $ .\" .\" Copyright (c) 1991, 1993 @@ -33,7 +33,7 @@ .\" .\" @(#)tr.1 8.1 (Berkeley) 6/6/93 .\" -.Dd $Mdocdate: April 5 2010 $ +.Dd $Mdocdate: July 15 2010 $ .Dt TR 1 .Os .Sh NAME @@ -276,18 +276,18 @@ System V shell scripts should work under this implementation as long as the range is intended to map in another range, i.e., the command .Dq tr\ [a-z]\ [A-Z] will work as it will map the -.Dq [ +.Dq \&[ character in .Ar string1 to the -.Dq [ +.Dq \&[ character in .Ar string2 . However, if the shell script is deleting or squeezing characters as in the command .Dq tr\ -d\ [a-z] , the characters -.Dq [ +.Dq \&[ and .Dq \] will be diff --git a/usr.bin/vi/docs/USD.doc/vi.man/vi.1 b/usr.bin/vi/docs/USD.doc/vi.man/vi.1 index 73d78b54653..0700f53cecb 100644 --- a/usr.bin/vi/docs/USD.doc/vi.man/vi.1 +++ b/usr.bin/vi/docs/USD.doc/vi.man/vi.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vi.1,v 1.42 2009/11/22 17:12:40 nicm Exp $ +.\" $OpenBSD: vi.1,v 1.43 2010/07/15 20:51:38 schwarze Exp $ .\" .\" Copyright (c) 1994 .\" The Regents of the University of California. All rights reserved. @@ -14,7 +14,7 @@ .\" .\" @(#)vi.1 8.51 (Berkeley) 10/10/96 .\" -.Dd $Mdocdate: November 22 2009 $ +.Dd $Mdocdate: July 15 2010 $ .Dt VI 1 .Os .Sh NAME @@ -1976,7 +1976,7 @@ only. Note matching .Sq { and -.Sq ( +.Sq \&( for .Sq } and diff --git a/usr.sbin/mtree/mtree.8 b/usr.sbin/mtree/mtree.8 index 90dc1339c1f..2ca574eb131 100644 --- a/usr.sbin/mtree/mtree.8 +++ b/usr.sbin/mtree/mtree.8 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mtree.8,v 1.33 2010/07/13 07:01:23 jmc Exp $ +.\" $OpenBSD: mtree.8,v 1.34 2010/07/15 20:51:38 schwarze Exp $ .\" $NetBSD: mtree.8,v 1.4 1995/03/07 21:26:25 cgd Exp $ .\" .\" Copyright (c) 1989, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)mtree.8 8.2 (Berkeley) 12/11/93 .\" -.Dd $Mdocdate: July 13 2010 $ +.Dd $Mdocdate: July 15 2010 $ .Dt MTREE 8 .Os .Sh NAME @@ -257,7 +257,7 @@ The file name may be preceded by whitespace characters. The file name may contain any of the standard file name matching characters .Po -.Dq [ , +.Dq \&[ , .Dq \&] , .Dq \&? , or