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

Re: How should I construct this?





On 24 Apr 2013, at 15:50, Bart Schaefer wrote:

In addition to Thomas's hashtables remarks, zsh "for" also supports
populating multiple variables each pass around the loop.

So if you have an ordinary array like your example (BTW I hope those
aren't your real passwords) then you can do

Ha… no, just randomly pressed keys… (well, except for Jenny's which is an homage to Tommy Tutone :)



but the SSID probably won't be in the same order as you assigned them,
because hashes return their values in hash bucket order.  If you need
to preserve a fixed ordering, you have to use a real array.

Ooh, yeah, that's important, as the array lists SSIDs in preferred order.

Thanks!

TjL



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