[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Brace expansion ordering vs. parameter expansion
From: |
Greg Wooledge |
Subject: |
Re: Brace expansion ordering vs. parameter expansion |
Date: |
Thu, 29 Apr 2021 08:37:22 -0400 |
On Thu, Apr 29, 2021 at 03:12:09PM +0300, Ilkka Virta wrote:
> BTW, was there some background to why they're ordered like this? I'm not
> sure if I have heard the story, and didn't see anything about it in Greg's
> wiki or bash-hackers.org (of course they tell the "what", but not the
> "why"). I didn't dig through all the mailing lists, though.
I don't know the reason, other than what Chet said earlier in this
thread (that it was never designed to work that way).
> Of course there's other ways with subshells, temporary arrays and using
> e.g. seq (but I'm not sure that exists on all systems either).
seq(1) is not standard, and definitely does *not* exist on all systems.
Some have jot(1) instead, but many commercial Unixes have neither.
Re: Problem with sequences with variables?, Greg Wooledge, 2021/04/29