mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 15:37:59 +08: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
|
@ -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 New Issue
Block a user