1
0
mirror of https://git.tukaani.org/xz.git synced 2025-10-05 16:58:17 +00:00

tests/test_suffix.sh: Avoid variables in printf format string

This commit is contained in:
Lasse Collin 2025-05-24 12:07:13 +03:00
parent a2c6aa8764
commit 41a421dbad
No known key found for this signature in database
GPG Key ID: 38EE757D69184620

View File

@ -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