Skip to contentSkip to conversation

read.1p: Split format and argument of printf call

PATCH New [email protected] 1 participant 1 message Mar 2, 2023 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 read.1p: Split format and argument of printf call

As printf expects the format and arguments as separate arguments, split the string accordingly. This is already fixed in the HTML version of the standard.

---
 man-pages-posix-2017/man1p/read.1p | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man-pages-posix-2017/man1p/read.1p +1 -1
index e09b896..d7e3a0a 100644
@@ -196,7 +196,7 @@ The following command:
 
 while read -r xx yy
 do
-    printf "%s %s\en$yy$xx"
+    printf "%s %s\en" "$yy" "$xx"
 done < \fIinput_file\fR
 .fi
 .P
Signature · 1 line
2.39.1