4 ms·
I think lack of proper arrays and structured data types is a big issue with bash. Basically everything is a string, with all the issues around escaping and corn
by nicoburns 8y ago
I think lack of proper arrays and structured data types is a big issue with bash. Basically everything is a string, with all the issues around escaping and corner cases that that implies
- freedomben 8y agoYeah very fair. I actually thought I included a line like this: "If you need arrays, hashes, or floating point math then bash is a poor choice" but I must have deleted it (I've been trying to use more brevity when I write).
- JetSpiegel 8y agoBash (4 at least) has proper arrays and hash maps, but granted, the syntax is hideous. The arrays are also limited, but hash maps are somewhat sane. > declare -a ARRAY > declare -A MAP