From c66ac9f0b6f5d67f68c0e45659f7a48936822f3c Mon Sep 17 00:00:00 2001 From: Akuli Date: Tue, 20 Feb 2024 04:07:50 +0200 Subject: [PATCH] doctest: Do not pass newline to "base64 -d" --- doctest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctest.sh b/doctest.sh index 5e9da232..e496ebda 100755 --- a/doctest.sh +++ b/doctest.sh @@ -77,7 +77,7 @@ nfail=0 cd tmp/doctest for file in */*.jou; do # print file and line number, as in "doc/foo.md:123: " - echo -n "$(basename "$(dirname "$file")" | base64 -d):$(basename "$file" | cut -d'.' -f1): " + echo -n "$(basename "$(dirname "$file")" | tr -d '\n' | base64 -d):$(basename "$file" | cut -d'.' -f1): " cp "$file" test.jou if $DIFF --text -u $diff_color <(generate_expected_output test.jou | tr -d '\r') <( ("$jou" test.jou 2>&1 || true) | tr -d '\r'); then