Skip to content
TinCanTech edited this page Dec 2, 2021 · 7 revisions

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 expand to the sequence 1 2 3 4 5

Clone this wiki locally