X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4d0e01fe1da830a6e8fdf13bd6bc21603642d5da..4929cad323afc87404752a1e88664a7f42cbb737:/test/common.sh.in diff --git a/test/common.sh.in b/test/common.sh.in index b373b2f1..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