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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <stepnem@xxxxxxxxx>
Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---

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




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux