forked from koalaman/shellcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
SC2183
koalaman edited this page Sep 7, 2016
·
2 revisions
printf "Hello %s, welcome to %s.\n" "$USER"
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 every time.
Either remove the unused variables from the format string, or add enough arguments to fill them.
None.