Created SC3009 (markdown)

TinCanTech
2021-12-02 14:36:33 +00:00
parent 9a98b925d7
commit 7acb17292a

9
SC3009.md Normal file

@@ -0,0 +1,9 @@
In POSIX `sh`, brace expansion is undefined.
Problematic code:
```
#!/bin/sh
for i in {1..5}; do ...
```
Here, `$i` expands to `{1..5}`. It does not exand to the sequence `1 2 3 4 5`