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.
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/