2 ms·
> better data structures such as arrays or dictionaries or sets POSIX sh doesn't have these, but BASH actually does have arrays, and even dicts (see https://st
by yjftsjthsd-h 10y ago
> better data structures such as arrays or dictionaries or sets
POSIX sh doesn't have these, but BASH actually does have arrays, and even dicts (see https://stackoverflow.com/questions/688849/associative-arrays-in-shell-scripts/691157#691157 https://stackoverflow.com/questions/688849/associative-array...)
- nerdponx 10y agoAnd if you're willing to spend time learning Zsh, you have a surprisingly reliable and expressive language. Or you could just learn Perl...
- kps 10y agoOr ksh, which bash was a half-assed imitation of. Or if you're just stringing commands together, traditional simpler Posix sh (note: 'bash --posix' isn't).