2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Use 'local' variable in echo functions in tests

This commit is contained in:
Witold Krecicki
2018-11-07 23:15:06 +01:00
parent dbf2e7928e
commit 0949b1fe2c
2 changed files with 12 additions and 12 deletions

View File

@@ -226,20 +226,20 @@ fi
SYSTESTDIR="`basename $PWD`" SYSTESTDIR="`basename $PWD`"
echo_i() { echo_i() {
echo "$@" | while read LINE ; do echo "$@" | while read __LINE ; do
echoinfo "I:$SYSTESTDIR:$LINE" echoinfo "I:$SYSTESTDIR:$__LINE"
done done
} }
echo_ic() { echo_ic() {
echo "$@" | while read LINE ; do echo "$@" | while read __LINE ; do
echoinfo "I:$SYSTESTDIR: $LINE" echoinfo "I:$SYSTESTDIR: $__LINE"
done done
} }
cat_i() { cat_i() {
while read LINE ; do while read __LINE ; do
echoinfo "I:$SYSTESTDIR:$LINE" echoinfo "I:$SYSTESTDIR:$__LINE"
done done
} }

View File

@@ -203,20 +203,20 @@ echoend () {
SYSTESTDIR="`basename $PWD`" SYSTESTDIR="`basename $PWD`"
echo_i() { echo_i() {
echo "$@" | while read LINE ; do echo "$@" | while read __LINE ; do
echoinfo "I:$SYSTESTDIR:$LINE" echoinfo "I:$SYSTESTDIR:$__LINE"
done done
} }
echo_ic() { echo_ic() {
echo "$@" | while read LINE ; do echo "$@" | while read __LINE ; do
echoinfo "I:$SYSTESTDIR: $LINE" echoinfo "I:$SYSTESTDIR: $__LINE"
done done
} }
cat_i() { cat_i() {
while read LINE ; do while read __LINE ; do
echoinfo "I:$SYSTESTDIR:$LINE" echoinfo "I:$SYSTESTDIR:$__LINE"
done done
} }