diff --git a/SC3009.md b/SC3009.md new file mode 100644 index 0000000..07aca09 --- /dev/null +++ b/SC3009.md @@ -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`