(SH-2059) Use of variable in `printf` format string
johnsonjh opened this issue · comments
Jeffrey H. Johnson commented
Description
Problematic code: bash printf "Hello, $NAME\n"
#### Preferred code: bash printf "Hello, %s\n" "$NAME"
printf
interprets escape sequences and format specifiers in the format string. If variables are included, any escape sequences or format specifiers in the data will be interpreted too, where you might have wanted …
Occurrences
There are 12 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2059/occurrences/
Repo Ranger commented
Repo Ranger commented
Jeffrey H. Johnson commented
Ignored / intentional