News for hackers. Stuff that matters.
Re:Testing Bash with BATS by nicoburns on Thursday February 21, 2019 @11:18PM (#19223086)
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
Re:Testing Bash with BATS by JetSpiegel on Saturday February 23, 2019 @01:25PM (#19234708)
Bash (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

Re:Testing Bash with BATS by freedomben on Friday February 22, 2019 @05:42PM (#19229821)
Yeah 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).