From: Christian Ehrhardt <christian.ehrhardt@canonical.com>
To: Kevin Traynor <ktraynor@redhat.com>
Cc: stable@dpdk.org, Thomas Monjalon <thomas@monjalon.net>,
Luca Boccassi <bluca@debian.org>,
Xueming Li <xuemingl@nvidia.com>,
David Marchand <david.marchand@redhat.com>
Subject: Re: [PATCH] 5-make-release-commit: fix rstheader
Date: Tue, 11 Jan 2022 08:51:57 +0100 [thread overview]
Message-ID: <CAATJJ0KnjTUkO2txKfQ9h85S42tvnEDVrB8W_xt9Y4ebEMfJFw@mail.gmail.com> (raw)
In-Reply-To: <8984b5be-e87d-cb65-17fe-4ac248d5933c@redhat.com>
On Mon, Jan 10, 2022 at 3:51 PM Kevin Traynor <ktraynor@redhat.com> wrote:
>
> On 07/01/2022 09:50, christian.ehrhardt@canonical.com wrote:
> > 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
> >
>
> Acked-by: Kevin Traynor <ktraynor@redhat.com>
Thank you both for the review, pushed to the stable-scripts git now.
--
Christian Ehrhardt
Staff Engineer, Ubuntu Server
Canonical Ltd
prev parent reply other threads:[~2022-01-11 7:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-07 9:50 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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAATJJ0KnjTUkO2txKfQ9h85S42tvnEDVrB8W_xt9Y4ebEMfJFw@mail.gmail.com \
--to=christian.ehrhardt@canonical.com \
--cc=bluca@debian.org \
--cc=david.marchand@redhat.com \
--cc=ktraynor@redhat.com \
--cc=stable@dpdk.org \
--cc=thomas@monjalon.net \
--cc=xuemingl@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).