(SH-2086) Use double quote to prevent globbing and word splitting
johnsonjh opened this issue · comments
Jeffrey H. Johnson commented
Description
Problematic code: sh echo $1 for i in $*; do :; done # this one and the next one also apply to expanding arrays. for i in $@; do :; done
## Correct code: ```sh echo "$1" for i in "$@"; do :; done # or, 'for i; …
Occurrences
There are 115 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/BAN-AI-Multics/ban-telnet/issue/SH-2086/occurrences/
Repo Ranger commented