From 302cfcaeab531138d59e4835ef77020a750e71f9 Mon Sep 17 00:00:00 2001 From: Alan Curry Date: Fri, 22 Apr 2011 11:08:50 +0200 Subject: tests: sparse-fiemap: adjust syntax to accommodate older awk * tests/cp/sparse-fiemap: Parenthesize ternary expression used as an argument to awk's printf. Otherwise, gawk 3.0.1 and the one from debian stable's original-awk would get a syntax error. Reported by Dennis Clarke. Copyright note: tiny change --- tests/cp/sparse-fiemap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/cp') diff --git a/tests/cp/sparse-fiemap b/tests/cp/sparse-fiemap index 1394060b3..64668ed36 100755 --- a/tests/cp/sparse-fiemap +++ b/tests/cp/sparse-fiemap @@ -64,7 +64,7 @@ fi f() { sed 's/ [a-z,][a-z,]*$//' $@ \ - | awk '/^ *[0-9]/ {printf "%d %d ", $2 ,NF < 5 ? $NF : $5 } END {print ""}' + | awk '/^ *[0-9]/ {printf "%d %d ", $2, (NF<5 ? $NF : $5) } END {print ""}' } for i in $(seq 1 2 21); do -- cgit v1.2.3-54-g00ecf