]> diplodocus.org Git - nmh/commitdiff
Fixed squeeze_lines() test function to be compatible with POSIX awk.
authorDavid Levine <levinedl@acm.org>
Sun, 8 Dec 2013 16:29:00 +0000 (10:29 -0600)
committerDavid Levine <levinedl@acm.org>
Sun, 8 Dec 2013 16:29:00 +0000 (10:29 -0600)
test/common.sh.in

index b373b2f..49e1c48 100644 (file)
@@ -128,7 +128,7 @@ check_for_hard_links () {
 
 #### Filter that squeezes blank lines, emulating GNU cat -s.
 squeeze_lines() {
-  awk '!length && e {next} {e = !length} 1'
+  awk '!length() && e {next} {e = !length()} 1'
 }
 
 #### Filter that inserts initial whitespace and converts non-breakable