Friday, December 26, 2008

Hashes In Shell

I've been working on a shell script recently. It's purpose isn't important, really. What is important at this point is that I found myself with a need for a hash map. In shell.

The best way to do a hash in shell is to not do a hash in shell.

I moved to Ruby, but you can move to whatever you like. But you have two choices in this situation: (1) simplify your implementation; or (2) change your language.

This is one of those times when working with polyglots helps.

No comments:

Post a Comment