bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The "asort" extension (Was: feature proposal: expand associative arr


From: Zachary Santer
Subject: Re: The "asort" extension (Was: feature proposal: expand associative arrays in lexicographic order ...)
Date: Tue, 25 Aug 2026 16:20:03 -0400

On Tue, Aug 25, 2026 at 2:31 PM Stan Marsh <gazelle@xmission.com> wrote:
>
> Rather, the sorting is a functionality associated with the "for"
> statement. That's how it works in GAWK, and I think that should be the
> model for how it should work in bash.

The indexed array expands in index numerical order anywhere you expand
it. The for loop just takes whatever you give it in the order you give
it in. It doesn't have to be an array expansion at all.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]