From 39762f0cf02e4517d5908bc3ebecf87b5cd8399e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 10 May 2016 09:38:47 +0100 Subject: [PATCH] preserve diff leading whitespaces when displayin them in the test runner --- test/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/run b/test/run index 42c51a43..c1e951aa 100755 --- a/test/run +++ b/test/run @@ -148,7 +148,7 @@ colorize() { } show_diff() { - diff -u $1 $2 | while read -r line; do + diff -u $1 $2 | while IFS='' read -r line; do first_character=$(echo "$line" | cut -b 1) case $first_character in +) color=green ;;