]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: initialize a variable
authorJim Meyering <meyering@fb.com>
Mon, 20 Feb 2023 16:37:18 +0000 (08:37 -0800)
committerJim Meyering <meyering@meta.com>
Tue, 21 Feb 2023 15:18:17 +0000 (07:18 -0800)
* tests/rm/interactive-once.sh (write_prot_msg1): Initialize it,
so an envvar setting cannot perturb the test.

tests/rm/interactive-once.sh

index ef97e0a336be91a51b796b8c521f9a0f71d1f7ea..54b288fa2c6ebd75b68655d82dce2fb9715133b2 100755 (executable)
@@ -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_