From fca64a525cd51136278627ac29e06b3ba8a31fec Mon Sep 17 00:00:00 2001 From: jmc <> Date: Tue, 2 Sep 2003 18:24:21 +0000 Subject: escape punctuation; ok deraadt@ --- src/lib/libc/stdlib/getopt.3 | 8 ++++---- src/lib/libc/stdlib/getopt_long.3 | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/lib/libc/stdlib') diff --git a/src/lib/libc/stdlib/getopt.3 b/src/lib/libc/stdlib/getopt.3 index 3fa17340de..9b27b70e65 100644 --- a/src/lib/libc/stdlib/getopt.3 +++ b/src/lib/libc/stdlib/getopt.3 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: getopt.3,v 1.25 2003/06/02 20:18:37 millert Exp $ +.\" $OpenBSD: getopt.3,v 1.26 2003/09/02 18:24:21 jmc Exp $ .\" .Dd December 17, 2002 .Dt GETOPT 3 @@ -129,7 +129,7 @@ encounters a character not found in .Fa optstring or if it detects a missing option argument, it returns -.Sq ? +.Sq \&? (question mark). If .Fa optstring @@ -138,7 +138,7 @@ has a leading then a missing option argument causes .Sq \: to be returned instead of -.Sq ? . +.Sq \&? . In either case, the variable .Va optopt is set to the character that caused the error. @@ -179,7 +179,7 @@ or detects a missing option argument it writes an error message to .Em stderr and returns -.Ql ? . +.Ql \&? . Setting .Va opterr to a zero will disable these error messages. diff --git a/src/lib/libc/stdlib/getopt_long.3 b/src/lib/libc/stdlib/getopt_long.3 index 1df792d178..6226dfe99f 100644 --- a/src/lib/libc/stdlib/getopt_long.3 +++ b/src/lib/libc/stdlib/getopt_long.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: getopt_long.3,v 1.8 2003/06/02 20:18:37 millert Exp $ +.\" $OpenBSD: getopt_long.3,v 1.9 2003/09/02 18:24:21 jmc Exp $ .\" $NetBSD: getopt_long.3,v 1.11 2002/10/02 10:54:19 wiz Exp $ .\" .\" Copyright (c) 1988, 1991, 1993 @@ -183,7 +183,7 @@ in the location pointed to by These functions return .Sq \: if there was a missing option argument, -.Sq ? +.Sq \&? if the user specified an unknown or ambiguous option, and \-1 when the argument list has been exhausted. .Sh EXAMPLES -- cgit v1.2.3-55-g6feb