All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org
Subject: [PATCH] man3/*: ffix, change '-' to '\-' for options
Date: Wed, 1 Jul 2020 22:50:59 +0000	[thread overview]
Message-ID: <20200701225059.GA26940@rhi.hi.is> (raw)

  Change '-' to '\-' for the prefix of names to indicate an option.

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 man3/dlopen.3             | 2 +-
 man3/fts.3                | 2 +-
 man3/getsubopt.3          | 2 +-
 man3/insque.3             | 2 +-
 man3/mq_getattr.3         | 2 +-
 man3/posix_spawn.3        | 8 ++++----
 man3/pthread_setname_np.3 | 2 +-
 man3/sincos.3             | 2 +-
 man3/strfromd.3           | 6 +++---
 man3/strftime.3           | 2 +-
 man3/system.3             | 2 +-
 11 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/man3/dlopen.3 b/man3/dlopen.3
index 8629af83e..eec6f9980 100644
--- a/man3/dlopen.3
+++ b/man3/dlopen.3
@@ -596,7 +596,7 @@ main(void)
        The 2013 Technical Corrigendum 1 to POSIX.1-2008 improved matters
        by requiring that conforming implementations support casting
        'void *' to a function pointer.  Nevertheless, some compilers
-       (e.g., gcc with the '-pedantic' option) may complain about the
+       (e.g., gcc with the '\-pedantic' option) may complain about the
        cast used in this program. */
 .\" http://pubs.opengroup.org/onlinepubs/009695399/functions/dlsym.html#tag_03_112_08
 .\" http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html#tag_16_96_07
diff --git a/man3/fts.3 b/man3/fts.3
index bbd5cad5e..0d455149d 100644
--- a/man3/fts.3
+++ b/man3/fts.3
@@ -822,7 +822,7 @@ In versions of glibc before 2.23,
 .\" https://sourceware.org/bugzilla/show_bug.cgi?id=11460
 all of the APIs described in this man page are not safe when compiling
 a program using the LFS APIs (e.g., when compiling with
-.IR -D_FILE_OFFSET_BITS=64 ).
+.IR \-D_FILE_OFFSET_BITS=64 ).
 .\"
 .\" The following statement is years old, and seems no closer to
 .\" being true -- mtk
diff --git a/man3/getsubopt.3 b/man3/getsubopt.3
index 6cf2d7a82..cef57fde7 100644
--- a/man3/getsubopt.3
+++ b/man3/getsubopt.3
@@ -53,7 +53,7 @@ parses the list of comma-separated suboptions provided in
 (Such a suboption list is typically produced when
 .BR getopt (3)
 is used to parse a command line;
-see for example the \fI-o\fP option of
+see for example the \fI\-o\fP option of
 .BR mount (8).)
 Each suboption may include an associated value,
 which is separated from the suboption name by an equal sign.
diff --git a/man3/insque.3 b/man3/insque.3
index 2a957f24c..a9fc28550 100644
--- a/man3/insque.3
+++ b/man3/insque.3
@@ -155,7 +155,7 @@ Here is an example run of the program:
 .PP
 .in +4n
 .EX
-.RB "$ " "./a.out -c a b c"
+.RB "$ " "./a.out \-c a b c"
 Traversing completed list:
     a
     b
diff --git a/man3/mq_getattr.3 b/man3/mq_getattr.3
index 74ef0492f..771316472 100644
--- a/man3/mq_getattr.3
+++ b/man3/mq_getattr.3
@@ -185,7 +185,7 @@ can be used to control the defaults:
 .PP
 .in +4n
 .EX
-$ \fBuname -sr\fP
+$ \fBuname \-sr\fP
 Linux 3.8.0
 $ \fBcat /proc/sys/fs/mqueue/msg_default\fP
 10
diff --git a/man3/posix_spawn.3 b/man3/posix_spawn.3
index 54fe775cc..f425a39e3 100644
--- a/man3/posix_spawn.3
+++ b/man3/posix_spawn.3
@@ -631,7 +631,7 @@ fails when trying to perform output and exits with a status of 1.
 .PP
 .in +4
 .EX
-$ \fB./a.out -c date\fP
+$ \fB./a.out \-c date\fP
 PID of child: 7636
 date: write error: Bad file descriptor
 Child status: exited, status=1
@@ -655,14 +655,14 @@ can't be blocked).
 .PP
 .in +4
 .EX
-$ \fB./a.out -s sleep 60 &\fP
+$ \fB./a.out \-s sleep 60 &\fP
 [1] 7637
 $ PID of child: 7638
 
 $ \fBkill 7638\fP
-$ \fBkill -KILL 7638\fP
+$ \fBkill \-KILL 7638\fP
 $ Child status: killed by signal 9
-[1]+  Done                    ./a.out -s sleep 60
+[1]+  Done                    ./a.out \-s sleep 60
 .EE
 .in
 .PP
diff --git a/man3/pthread_setname_np.3 b/man3/pthread_setname_np.3
index acea0b468..883464755 100644
--- a/man3/pthread_setname_np.3
+++ b/man3/pthread_setname_np.3
@@ -141,7 +141,7 @@ Created a thread. Default name is: a.out
 The thread name after setting it is THREADFOO.
 \fB^Z\fP                           # Suspend the program
 [1]+  Stopped           ./a.out
-.RB "$ " "ps H -C a.out -o 'pid tid cmd comm'"
+.RB "$ " "ps H \-C a.out \-o 'pid tid cmd comm'"
   PID   TID CMD                         COMMAND
  5990  5990 ./a.out                     a.out
  5990  5991 ./a.out                     THREADFOO
diff --git a/man3/sincos.3 b/man3/sincos.3
index 7d5c29724..8ec3e9ca1 100644
--- a/man3/sincos.3
+++ b/man3/sincos.3
@@ -94,7 +94,7 @@ built-in optimizations, using flags such as:
 .PP
 .in +4n
 .EX
-cc -O \-lm \-fno\-builtin prog.c
+cc \-O \-lm \-fno\-builtin prog.c
 .EE
 .in
 .SH BUGS
diff --git a/man3/strfromd.3 b/man3/strfromd.3
index 84cc08068..8092e645d 100644
--- a/man3/strfromd.3
+++ b/man3/strfromd.3
@@ -127,13 +127,13 @@ infinity values:
 .RS
 If
 .I fp
-is a NaN, +NaN, or -NaN, and
+is a NaN, +NaN, or \-NaN, and
 .B f
 (or
 .BR a ,
 .BR e ,
 .BR g )
-is the conversion specifier, the conversion is to "nan", "nan", or "-nan",
+is the conversion specifier, the conversion is to "nan", "nan", or "\-nan",
 respectively.
 If
 .B F
@@ -141,7 +141,7 @@ If
 .BR A ,
 .BR E ,
 .BR G )
-is the conversion specifier, the conversion is to "NAN" or "-NAN".
+is the conversion specifier, the conversion is to "NAN" or "\-NAN".
 .PP
 Likewise if
 .I fp
diff --git a/man3/strftime.3 b/man3/strftime.3
index d33c0f5ec..15616116d 100644
--- a/man3/strftime.3
+++ b/man3/strftime.3
@@ -424,7 +424,7 @@ conversion specification corresponds to the full alternative year representation
 The
 .I +hhmm
 or
-.I -hhmm
+.I \-hhmm
 numeric timezone (that is, the hour and minute offset from UTC). (SU)
 .TP
 .B %Z
diff --git a/man3/system.3 b/man3/system.3
index 997b1a3de..21f2e0304 100644
--- a/man3/system.3
+++ b/man3/system.3
@@ -50,7 +50,7 @@ as follows:
 .PP
 .in +4n
 .EX
-execl("/bin/sh", "sh", "-c", command, (char *) NULL);
+execl("/bin/sh", "sh", "\-c", command, (char *) NULL);
 .EE
 .in
 .PP
-- 
2.27.0

             reply	other threads:[~2020-07-01 22:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-01 22:50 Bjarni Ingi Gislason [this message]
2020-07-02 10:27 ` [PATCH] man3/*: ffix, change '-' to '\-' for options Michael Kerrisk (man-pages)
2020-07-04  0:02   ` Bjarni Ingi Gislason
2020-07-06  8:45     ` Michael Kerrisk (man-pages)
2020-07-13 18:58       ` Bjarni Ingi Gislason
2020-07-17 11:20         ` Michael Kerrisk (man-pages)
2020-07-30  0:07           ` Bjarni Ingi Gislason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200701225059.GA26940@rhi.hi.is \
    --to=bjarniig@rhi.hi.is \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.