From 7acb17292a3a7427e43605e7bdf07304315aac5e Mon Sep 17 00:00:00 2001 From: TinCanTech Date: Thu, 2 Dec 2021 14:36:33 +0000 Subject: [PATCH] Created SC3009 (markdown) --- SC3009.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 SC3009.md 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`