From f9e0cff1e805ceba049969451691e0a15603acd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Rossillol=E2=80=91=E2=80=91Laruelle?= Date: Mon, 5 Aug 2024 16:05:03 +0200 Subject: [PATCH] revert "fix code coverage" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 7baa1a5ecdba205d9e5b514bc131532c39db4bcf. Indeed, the changes added by this previous commit were due to a bug in kcov which is now fixed. See-also: https://github.com/SimonKagstrom/kcov/pull/459/ See-also: https://github.com/SimonKagstrom/kcov/issues/457/ Signed-off-by: Mattéo Rossillol‑‑Laruelle --- spec/actions_spec.sh | 8 ++++---- src/join.in | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/actions_spec.sh b/spec/actions_spec.sh index 30e958f..82def72 100644 --- a/spec/actions_spec.sh +++ b/spec/actions_spec.sh @@ -53,7 +53,7 @@ Describe "actions" End result() { - @cat <<-EOF + @cat <<- EOF Usage: ${PWD}/join [options...] [--] [patterns...] [--] [inputs...] Options: @@ -103,7 +103,7 @@ Describe "actions" Describe "with $1" It "with not a number" result() { - @cat <&2 <<-EOF + cat >&2 <<- EOF =============================================================================== Fatal error with the following message: @@ -110,7 +110,7 @@ list() { ########### copyright() { - cat <<-EOF + cat <<- EOF Copyright (C) 2024 Mattéo Rossillol‑‑Laruelle This program is free software: you can redistribute it and/or modify @@ -149,7 +149,7 @@ join() ( export "${pattern}"="${content}" done - cat <<-"EOF" | gawk -f - -- "${ref_inputs[@]}" || die + cat <<- "EOF" | gawk -f - -- "${ref_inputs[@]}" || die BEGIN { FPAT = "@[A-Z]+@" } NF == 0 { print } @@ -166,7 +166,7 @@ join() ( ) usage() { - cat <<-EOF + cat <<- EOF Usage: ${JOIN_SOURCE} [options...] [--] [patterns...] [--] [inputs...] Options: