Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: brace expansion: combining the comma and .. forms
- X-seq: zsh-users 30295
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: brace expansion: combining the comma and .. forms
- Date: Sun, 6 Jul 2025 00:13:23 +0200
- Archived-at: <https://zsh.org/users/30295>
- In-reply-to: <20250705221057.GA178087@qaa.vinc17.org>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- References: <20250705221057.GA178087@qaa.vinc17.org>
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.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author