tests/invocation.sh: Use a formatting string with printf

Using printf like

    printf "The message"

is unsafe, because if the message contains any formatting characters,
they'll be interpreted.

In this case it's not all that important because the message contains
only filenames of our tests and static strings, but still.
This commit is contained in:
Fabian Homborg 2019-01-23 22:53:53 +01:00
parent 4e391abe3c
commit 8079345207

View file

@ -199,7 +199,7 @@ test_file() {
rm -f "${temp_dir}/home/fish/config.fish" rm -f "${temp_dir}/home/fish/config.fish"
fi fi
printf "Testing file $file ${system_specific:+($system_name specific) }... " printf '%s' "Testing file $file ${system_specific:+($system_name specific) }... "
# The hoops we are jumping through here, with changing directory are # The hoops we are jumping through here, with changing directory are
# so that we always execute fish as './fish', which means that any # so that we always execute fish as './fish', which means that any