]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/: ffix (escape dashes)
authorAlejandro Colomar <alx@kernel.org>
Thu, 25 Sep 2025 08:55:10 +0000 (10:55 +0200)
committerAlejandro Colomar <alx@kernel.org>
Thu, 25 Sep 2025 09:13:56 +0000 (11:13 +0200)
Most of these have been reported by 'make lint-man-dash'.  A couple of
them were found manually.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man3/ctime.3
man/man3/fmod.3
man/man3/pthread_getattr_np.3
man/man3/strverscmp.3
man/man3attr/gnu::format.3attr
man/man5/nscd.conf.5
man/man7/man-pages.7

index d5f2fc103525571ac924055bdb9c4643274da331..7d69dd83cfb2c5586b459d7a1a3173fc0e27ae3d 100644 (file)
@@ -503,7 +503,7 @@ The following shell session shows sample runs of the program:
 $
 .RB $\~ "export TZ=Europe/Madrid" ;
 $
-.RB $\~ "./a.out 2147483647 2147483647 00 00 00 00 -1" ;
+.RB $\~ "./a.out 2147483647 2147483647 00 00 00 00 \-1" ;
 a.out: mktime: Value too large for defined data type
 $
 .RB $\~ "./a.out 2024 08 23 00 17 53 \-1" ;
index c0cbaa5bd9c82945600b2bce2cd9d38b258bc7d7..b6d8f92c4867a7c60fb203b247e0cf5e2bef40d7 100644 (file)
@@ -166,11 +166,11 @@ The call
 returns 12.
 .P
 The call
-.I fmod(-372, 360)
-returns -12.
+.I fmod(\-372, 360)
+returns \-12.
 .P
 The call
-.I fmod(-372, -360)
-also returns -12.
+.I fmod(\-372, \-360)
+also returns \-12.
 .SH SEE ALSO
 .BR remainder (3)
index c8bcb2a356eed3ac5fced1bc0b221fa5a9375f68..a879e45a836878f203c7ba3ec1541f9a30f910dd 100644 (file)
@@ -271,7 +271,7 @@ get_thread_attributes_from_cl(int argc, char *argv[],
     if (argc > optind)
         usage(argv[0], "Extraneous command\-line arguments\[rs]n");
 \&
-    if (stack_size != -1 || guard_size > 0) {
+    if (stack_size != \-1 || guard_size > 0) {
         ret_attrp = attrp;
 \&
         s = pthread_attr_init(attrp);
@@ -279,7 +279,7 @@ get_thread_attributes_from_cl(int argc, char *argv[],
             errc(EXIT_FAILURE, s, "pthread_attr_init");
     }
 \&
-    if (stack_size != -1) {
+    if (stack_size != \-1) {
         if (!allocate_stack) {
             s = pthread_attr_setstacksize(attrp, stack_size);
             if (s != 0)
@@ -297,7 +297,7 @@ get_thread_attributes_from_cl(int argc, char *argv[],
         }
     }
 \&
-    if (guard_size != -1) {
+    if (guard_size != \-1) {
         s = pthread_attr_setguardsize(attrp, guard_size);
         if (s != 0)
             errc(EXIT_FAILURE, s, "pthread_attr_setstacksize");
index 46747ac0102a91965acf83c2a946020d4ca3a585..fab8bc9841ac4f28d42132936d40d61d8dc1c815 100644 (file)
@@ -34,7 +34,7 @@ so is meant mostly for situations
 where the strings are expected to be in ASCII.
 This is different from the ordering produced by
 .BR sort (1)
-.BR -V .
+.BR \-V .
 .\" sort -V sorts a-1.0a < a-1.0.1a; strverscmp() does not
 .P
 What this function does is the following.
index e48670ad711e9eaa73aba10ba9a515c88bb0e0dd..92ea4ef74be0e655bb88aa70614abba282b72bd7 100644 (file)
@@ -124,13 +124,13 @@ vstprintf(int size;
 \&
        if (size == 0) {
                errno = EOVERFLOW;
-               return -1;
+               return \-1;
        }
 \&
        len = vsnprintf(buf, size, fmt, args);
        if (len >= size) {
                errno = E2BIG;
-               return -1;
+               return \-1;
        }
 \&
        return len;
index ec6eb8a76b52c5749408e237840aafbc53bc74fe..62392b8aa9da5ebebf69b036322472f638a3341d 100644 (file)
@@ -286,7 +286,7 @@ and only then will it actually be removed from the cache.
 A request from a client which hits the entry will
 reset the reload counter on the entry.
 Purging the cache using
-.I nscd\~-i
+.I nscd\~\-i
 overrides the reload logic and removes the entry.
 .P
 Reloading has the effect of extending cache entry TTLs
@@ -337,7 +337,7 @@ Some distributions have an init script for
 with a
 .I reload
 command which uses
-.I nscd\~-i
+.I nscd\~\-i
 to purge the cache.
 That use of the word "reload" is entirely different
 from the "reloading" described here.
index 0ce9a174fcd8e0e8ada0e5e474abf07ef3b454a6..f5315e37d55c00013e3685d608cf877bfe5af61a 100644 (file)
@@ -1003,7 +1003,7 @@ when rendering a page with, say:
 .P
 .in +4n
 .EX
-BROWSER=firefox man -H pagename
+BROWSER=firefox man \-H pagename
 .EE
 .in
 .SS Use of e.g., i.e., etc., a.k.a., and similar