]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
tests/test_suffix.sh: Avoid variables in printf format string shellcheck
authorLasse Collin <lasse.collin@tukaani.org>
Sat, 24 May 2025 09:07:13 +0000 (12:07 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 24 May 2025 09:42:17 +0000 (12:42 +0300)
tests/test_suffix.sh

index 7fc5996f776269264024df0eb606538963087b47..1859fe4c8a7992b19c2824d59884b99c96a94196 100755 (executable)
@@ -118,8 +118,8 @@ else
 fi
 
 # Create two temporary files to be used with --files and --files0.
-printf "$SUFFIX_INPUT\n" > "$SUFFIX_INPUT_FILES"
-printf "$SUFFIX_INPUT\0" > "$SUFFIX_INPUT_FILES0"
+printf '%s\n' "$SUFFIX_INPUT" > "$SUFFIX_INPUT_FILES"
+printf '%s\0' "$SUFFIX_INPUT" > "$SUFFIX_INPUT_FILES0"
 
 # Test proper handling of --files/--files0 when no suffix is set. This
 # must result in an error because xz does not know how to rename the output