summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Curry <pacman-cu@kosh.dhis.org>2011-04-22 11:08:50 +0200
committerJim Meyering <meyering@redhat.com>2011-04-22 11:10:32 +0200
commit302cfcaeab531138d59e4835ef77020a750e71f9 (patch)
tree1dcd900bb4ee6b1aea4c95c112e363231331f4eb
parent8c0b1de42c615a82ce7e32901ad1e4dca95b3657 (diff)
downloadcoreutils-302cfcaeab531138d59e4835ef77020a750e71f9.tar.xz
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
-rw-r--r--THANKS.in1
-rwxr-xr-xtests/cp/sparse-fiemap2
2 files changed, 2 insertions, 1 deletions
diff --git a/THANKS.in b/THANKS.in
index bd8645f33..342a52c81 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -151,6 +151,7 @@ Deepak Goel deego@gnufans.org
Denis Excoffier denis.excoffier@airbus.com
Denis McKeon dmckeon@swcp.com
Dennis Henriksen opus@flamingo.osrl.dk
+Dennis Clarke dclarke@blastwave.org
Dennis Smit ds@nerds-incorporated.org
Derek Clegg dclegg@next.com
Dick Streefland dick_streefland@tasking.com
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