From d0d4abac2ec03e2946a90d26ba3f20c5228292a6 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 15 Jun 2020 13:14:16 +0100 Subject: [PATCH] edithtml.sh: argument quoting. Signed-off-by: Daira Hopwood --- edithtml.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/edithtml.sh b/edithtml.sh index fc113efd..353428d5 100755 --- a/edithtml.sh +++ b/edithtml.sh @@ -15,7 +15,7 @@ if [ "x$1" = "x--rst" ]; then sed -i.sedbak 's|||' $2 sed -i.sedbak 's|http://cdn.mathjax.org/mathjax/latest/MathJax.js|https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js|' $2 else - cat - $2 >$2.prefix <"$2".prefix < @@ -26,14 +26,14 @@ else EOF - cat $2.prefix - >$2 <"$2" < EOF - rm -f $2.prefix + rm -f "$2".prefix fi -sed -i.sedbak 's|||g' $2 +sed -i.sedbak 's|||g' "$2" perl -i.sedbak -p0e 's|
\s*.?\s*([^<]*(?:[^<]*[^<]*)?)|
\3 |g' "$2"