From 812b331b29ffd388dc4b96f454be53fdc6f97ccc Mon Sep 17 00:00:00 2001 From: Dave Chinner Date: Wed, 20 Jun 2007 06:14:34 +0000 Subject: [PATCH] Clean up whitespace problems with 166. Merge of master-melb:xfs-cmds:28941a by kenmcd. Don't leave trailing whitespace at EOL when filtering output. --- 166 | 7 ++++++- 166.out | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/166 b/166 index cb7ab438..4562b39a 100644 --- a/166 +++ b/166 @@ -29,7 +29,12 @@ _cleanup() _filter_blocks() { - $AWK_PROG '/[0-9]/ { print $1, $2, "XX..YY", "AG", "(AA..BB)", $6, $7 }' + $AWK_PROG '/[0-9]/ { + if ($7) + print $1, $2, "XX..YY", "AG", "(AA..BB)", $6, $7; + else + print $1, $2, "XX..YY", "AG", "(AA..BB)", $6; + }' } # real QA test starts here diff --git a/166.out b/166.out index 3b40c43e..c562847d 100644 --- a/166.out +++ b/166.out @@ -1,4 +1,4 @@ -QA output created by 164 +QA output created by 166 0: [0..31]: XX..YY AG (AA..BB) 32 1: [32..127]: XX..YY AG (AA..BB) 96 10000 2: [128..159]: XX..YY AG (AA..BB) 32 -- 2.47.3