From c62488a80142207ca3e26a8c28ba573bfc0c0ca3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 20 Feb 2023 08:37:18 -0800 Subject: [PATCH] tests: initialize a variable * tests/rm/interactive-once.sh (write_prot_msg1): Initialize it, so an envvar setting cannot perturb the test. --- tests/rm/interactive-once.sh | 1 + 1 file changed, 1 insertion(+) 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_ -- 2.47.2