From dd7b25c911e759b70905a623eacd5b6fdf3e630b Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 8 Dec 2013 10:56:35 -0600 Subject: [PATCH] That didn't work, so try this awk command from Robert Elz. --- test/common.sh.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/common.sh.in b/test/common.sh.in index 49e1c48e..94b41906 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -128,7 +128,9 @@ check_for_hard_links () { #### Filter that squeezes blank lines, emulating GNU cat -s. squeeze_lines() { - awk '!length() && e {next} {e = !length()} 1' + awk 'length($0) == 0 && e == 1 { next } + { e = length($0) == 0 } + { print }' } #### Filter that inserts initial whitespace and converts non-breakable -- 2.56.0