Thread (2 messages) 2 messages, 2 authors, 2021-08-04

[PATCH] man-pages-posix-2017/man1p/getopts.1p: Fix usage of printf(1) in example

From: Alejandro Colomar <hidden>
Date: 2021-08-04 10:50:14
Subsystem: the rest · Maintainer: Linus Torvalds

The original HTML files are correct, so this seems a bug in the
conversion.  For now, let's fix the page.

Reported-by: Štěpán Němec <redacted>
Signed-off-by: Alejandro Colomar <redacted>
---

Hi, Štěpán!

You can check the source code here:
<https://git.kernel.org/pub/scm/docs/man-pages/man-pages-posix.git/>

It's autogenerated from the original HTML POSIX pages, so we should
fix the python script.  But here's the fix you proposed.

Thanks,

Alex


 man-pages-posix-2017/man1p/getopts.1p | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/man-pages-posix-2017/man1p/getopts.1p b/man-pages-posix-2017/man1p/getopts.1p
index 6651993..616db6f 100644
--- a/man-pages-posix-2017/man1p/getopts.1p
+++ b/man-pages-posix-2017/man1p/getopts.1p
@@ -337,7 +337,7 @@ if [ ! -z "$bflag" ]; then
     printf \(aqOption -b "%s" specified\en\(aq "$bval"
 fi
 shift $(($OPTIND - 1))
-printf "Remaining arguments are: %s\en$*"
+printf "Remaining arguments are: %s\en" "$*"
 .fi
 .P
 .RE
-- 
2.32.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help