From: Jim Meyering Date: Mon, 20 Feb 2023 16:37:18 +0000 (-0800) Subject: tests: initialize a variable X-Git-Tag: v9.2~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c62488a80142207ca3e26a8c28ba573bfc0c0ca3;p=thirdparty%2Fcoreutils.git tests: initialize a variable * tests/rm/interactive-once.sh (write_prot_msg1): Initialize it, so an envvar setting cannot perturb the test. --- diff --git a/tests/rm/interactive-once.sh b/tests/rm/interactive-once.sh index ef97e0a336..54b288fa2c 100755 --- a/tests/rm/interactive-once.sh +++ b/tests/rm/interactive-once.sh @@ -35,6 +35,7 @@ rm -I file1-* < in-n >> out 2>> err || fail=1 echo . >> err || framework_failure_ test -f file1-1 && fail=1 +write_prot_msg1= echo 'one file, read only, answer no' >> err || framework_failure_ if ls /dev/stdin >/dev/null 2>&1; then touch file1-1 || framework_failure_