From: ignas
To: [email protected]
Subject: BUG: Brace expansions do not support any type of variable.
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -g -O2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
-flto=auto -ffat-lto-objects -fstack-protector-strong -fstack-clash-protect>
uname output: Linux IgnasUltra 6.6.87.2-microsoft-standard-WSL2 #1 SMP
PREEMPT_DYNAMIC Thu Jun 5 18:30:46 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.2
Patch Level: 21
Release Status: release
Description:
There is a bug that doesn't let accept variables in brace expansions.
Ex: {0..$foo}
Please add the ability to add variables to brace expansions.
Repeat-By:
foo=3
for x in {0..$foo}; do
echo $x
done
The output will be "{0..3}"
instead of the expected:
0
1
2
3
Fix:
Allow brace expansions to accept variables.