summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2023-02-20 08:37:18 -0800
committerJim Meyering <meyering@meta.com>2023-02-21 07:18:17 -0800
commitc62488a80142207ca3e26a8c28ba573bfc0c0ca3 (patch)
tree4ed4ce6a2732af6ab48e368aae546436ec02cb8f /tests
parenta0803c4bad6f8e11bb05effcc42ef433f4fc3f9b (diff)
downloadcoreutils-c62488a80142207ca3e26a8c28ba573bfc0c0ca3.tar.gz
tests: initialize a variable
* tests/rm/interactive-once.sh (write_prot_msg1): Initialize it, so an envvar setting cannot perturb the test.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/rm/interactive-once.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/rm/interactive-once.sh b/tests/rm/interactive-once.sh
index ef97e0a33..54b288fa2 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_