Do I have to do any configuration to start brace expansion? When I run mkdir {1..10}
, it just creates a dir naming {1..10}
.
Shell – Why is Brace Expansion Not Supported?
brace-expansionshell
brace-expansionshell
Do I have to do any configuration to start brace expansion? When I run mkdir {1..10}
, it just creates a dir naming {1..10}
.
Best Answer
While brace expansion like
{1,2}
originates incsh
in the late 70s, and found its way to Bourne-like shells inbash
/zsh
/pdksh
in the late 80s, early 90s, the{n1..n2}
variant came later first inzsh
in 1995 (2.6-beta4).bash
copied it in 2004 (3.0) andksh93
in 2005 (ksh93r
).Probably the shell you're trying this in is neither of those or is an older version of
bash
andksh93
.