Updated SC2089 (markdown)

Kim Scarborough
2017-04-30 01:17:21 -05:00
parent b289b27d21
commit 6318f3bbef

@@ -30,7 +30,7 @@ Similarly, `"My File.txt"` is Bash syntax for a single word with a space in it.
The solution is to use an array instead, whenever possible.
If you due to `sh` compatibility can't use arrays, you can use `eval` instead. However, this is very insecure and easy to get wrong, leading to various forms of security vulnerabilities and breakage:
If due to `sh` compatibility you can't use arrays, you can use `eval` instead. However, this is very insecure and easy to get wrong, leading to various forms of security vulnerabilities and breakage:
```sh
quote() { local q=${1//\'/\'\\\'\'}; echo "'$q'"; }