mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Robert Schwebel <r.schwebel@pengutronix.de>
Subject: [ptxdist] [PATCH] ptxd_install_replace_figlet: replace all backslashes, not only the first
Date: Fri,  5 Oct 2018 22:52:12 +0200	[thread overview]
Message-ID: <20181005205212.24577-1-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <20181005155009.wezdsvt4euuwoill@pengutronix.de>

Fixes: f53889792197 ("ptxd_install_replace_figlet: Use sed instead of awk to quote backslashes")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 scripts/lib/ptxd_make_xpkg_pkg.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index b3f2f20f3e4e..766d46ac3238 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -587,7 +587,7 @@ install replace figlet:
             # figlet needs to be replaced by \\\\. As a \ in sed needs to be
             # quoted, too, this results in eight backslashes in the replacement
             # string.
-            etcissue)	sed 's,\\,\\\\\\\\,';;
+            etcissue)	sed 's,\\,\\\\\\\\,g';;
             *)		;;
         esac | \
         awk '{ if ($0 !~ "^ *$") printf("%s\\n", $0) }'  # newlines for sed
-- 
2.19.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2018-10-05 20:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-19  8:43 [ptxdist] [PATCH] ptxd_install_replace_figlet: Use sed instead of awk to quote backslashes Uwe Kleine-König
2018-10-05 15:50 ` Robert Schwebel
2018-10-05 20:52   ` Uwe Kleine-König [this message]
2018-10-06 10:30     ` [ptxdist] [PATCH] ptxd_install_replace_figlet: replace all backslashes, not only the first Robert Schwebel

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=20181005205212.24577-1-u.kleine-koenig@pengutronix.de \
    --to=u.kleine-koenig@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=r.schwebel@pengutronix.de \
    /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