mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
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:
parent
4e391abe3c
commit
8079345207
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ test_file() {
|
|||
rm -f "${temp_dir}/home/fish/config.fish"
|
||||
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
|
||||
# so that we always execute fish as './fish', which means that any
|
||||
|
|
Loading…
Reference in a new issue