Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Empty element elision and associative arrays (was Re: Slurping a file)




On 2024-01-19 06:37, Mark J. Reed wrote:


It seems that the `kv` is effectively applied before the `o`, so you get the keys and values intermixed and then the whole list sorted together. Hard to imagine a use case where that would be the desired outcome. 

So it seems that zsh already does intend the ability to output the array in a declared way as Stephane showed (hash tables notwithstanding).  Thus it's simply a matter of making that work as it proposes to do.  Couldn't ask for more.


Messages sorted by: Reverse Date, Date, Thread, Author