X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ca717fb78c10acce62b7a81920e8e7ed8be2c053..4929cad323afc87404752a1e88664a7f42cbb737:/test/common.sh.in 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