On 7/5/25 6:13 PM, Vincent Lefevre wrote:
On 2025-07-06 00:10:57 +0200, Vincent Lefevre wrote:With brace expansion, is there a way to combine the comma and .. forms? For instance, I get qaa% echo foo{1..3,5..7} foo1..3 foo5..7 while I would want foo1 foo2 foo3 foo5 foo6 foo7... like what the following does: qaa% echo foo{{1..3},{5..7}} foo1 foo2 foo3 foo5 foo6 foo7 But I would like to avoid the extra braces.
Within the same expansion, no. just like you can't combine different forms of parameter expansions without nesting. eg: ${name:=word##prefix}.