mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2183 (markdown)
@@ -15,7 +15,7 @@ printf "Hello %s, welcome to %s.\n" "$USER" "$HOSTNAME"
|
||||
|
||||
ShellCheck has noticed that you're using a `printf` format string with more `%s` variables than arguments to fill them.
|
||||
|
||||
In the problematic example case, the last `%s` will just become an empty string each time.
|
||||
In the problematic example case, the last `%s` will just become an empty string every time.
|
||||
|
||||
Either remove the unused variables from the format string, or add enough arguments to fill them.
|
||||
|
||||
|
Reference in New Issue
Block a user