From 0949b1fe2c5f4b116f19f18428d5d70bf929b4d3 Mon Sep 17 00:00:00 2001 From: Witold Krecicki Date: Wed, 7 Nov 2018 23:15:06 +0100 Subject: [PATCH] Use 'local' variable in echo functions in tests --- bin/tests/system/conf.sh.in | 12 ++++++------ bin/tests/system/conf.sh.win32 | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/tests/system/conf.sh.in b/bin/tests/system/conf.sh.in index 717bef14b8..212897e54f 100644 --- a/bin/tests/system/conf.sh.in +++ b/bin/tests/system/conf.sh.in @@ -226,20 +226,20 @@ fi SYSTESTDIR="`basename $PWD`" echo_i() { - echo "$@" | while read LINE ; do - echoinfo "I:$SYSTESTDIR:$LINE" + echo "$@" | while read __LINE ; do + echoinfo "I:$SYSTESTDIR:$__LINE" done } echo_ic() { - echo "$@" | while read LINE ; do - echoinfo "I:$SYSTESTDIR: $LINE" + echo "$@" | while read __LINE ; do + echoinfo "I:$SYSTESTDIR: $__LINE" done } cat_i() { - while read LINE ; do - echoinfo "I:$SYSTESTDIR:$LINE" + while read __LINE ; do + echoinfo "I:$SYSTESTDIR:$__LINE" done } diff --git a/bin/tests/system/conf.sh.win32 b/bin/tests/system/conf.sh.win32 index 4adaff0bc6..b8010f5430 100644 --- a/bin/tests/system/conf.sh.win32 +++ b/bin/tests/system/conf.sh.win32 @@ -203,20 +203,20 @@ echoend () { SYSTESTDIR="`basename $PWD`" echo_i() { - echo "$@" | while read LINE ; do - echoinfo "I:$SYSTESTDIR:$LINE" + echo "$@" | while read __LINE ; do + echoinfo "I:$SYSTESTDIR:$__LINE" done } echo_ic() { - echo "$@" | while read LINE ; do - echoinfo "I:$SYSTESTDIR: $LINE" + echo "$@" | while read __LINE ; do + echoinfo "I:$SYSTESTDIR: $__LINE" done } cat_i() { - while read LINE ; do - echoinfo "I:$SYSTESTDIR:$LINE" + while read __LINE ; do + echoinfo "I:$SYSTESTDIR:$__LINE" done }