3 ms·
I don't know if I agree with that. I write Bash; I've written some stuff I really shouldn't have written in Bash. Writing elegant Bash is possible, though I agr
by nunez 2y ago
I don't know if I agree with that. I write Bash; I've written some stuff I really shouldn't have written in Bash. Writing elegant Bash is possible, though I agree it is very easy to footgun yourself with it. The problem is that Bash is right at the middle of "I need something quick" vs "I don't want to break out Golang or whatever" and Bash is installed damn nearly everywhere.
A 50-line awk script though? Get outta here with that lol
- sebstefan 2y agoI don't trust myself so I need my language to not be bug-prone (and I don't recommend it for others because if we're looking at it realistically, most people who trust themselves shouldn't trust themselves)
- candiddevmike 2y ago> I don't trust myself so I need my language to not be bug-prone Which language is that?
- jonhohle 2y agoDo you write unit tests in other languages? Do you write unit tests for your bash scripts?
- nunez 2y agoYes, if the "script" is big enough. I use BATS for that.
- nunez 2y agoShellcheck is amazing at preventing bugs!
- Already__Taken 2y agoit just isn't everywhere though. sh, ash zsh, Mac... windows are all different. you think it works everywhere but really its just breaking and nobody is telling you. python is just as everywhere and that's a total mess.