patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] 5-make-release-commit: fix rstheader
@ 2022-01-07  9:50 christian.ehrhardt
  2022-01-07 10:00 ` David Marchand
  2022-01-10 14:50 ` Kevin Traynor
  0 siblings, 2 replies; 5+ messages in thread
From: christian.ehrhardt @ 2022-01-07  9:50 UTC (permalink / raw)
  To: stable, Thomas Monjalon, Luca Boccassi, Xueming Li,
	David Marchand, Kevin Traynor
  Cc: Christian Ehrhardt

From: Christian Ehrhardt <christian.ehrhardt@canonical.com>

The printf magic fails trying to interpret "-" as option and thereby breaking
the top level headers.
   printf: -%: invalid option
   printf: usage: printf [-v var] format [arguments]

Instead of relying printf expansion, fall back to the more trivial
printf n times which works with any char.

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
---
 5-make-release-commit | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/5-make-release-commit b/5-make-release-commit
index 374154f..00acf92 100755
--- a/5-make-release-commit
+++ b/5-make-release-commit
@@ -29,7 +29,7 @@ function rstheader()
 
 	echo
 	echo "${msg}"
-	printf "${rchar}%.0s" $(seq 1 ${#msg})
+	for i in $(seq 1 ${#msg}); do printf "${rchar}"; done
 	# break after line plus one empty line
 	echo
 	echo
-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-11  7:52 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-07  9:50 [PATCH] 5-make-release-commit: fix rstheader christian.ehrhardt
2022-01-07 10:00 ` David Marchand
2022-01-07 10:04   ` Christian Ehrhardt
2022-01-10 14:50 ` Kevin Traynor
2022-01-11  7:51   ` Christian Ehrhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).