From: David Levine Date: Sun, 8 Dec 2013 16:56:35 +0000 (-0600) Subject: That didn't work, so try this awk command from Robert Elz. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/dd7b25c911e759b70905a623eacd5b6fdf3e630b That didn't work, so try this awk command from Robert Elz. --- 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