5 ms·
I have been following this advice for about five years with my scripts and the best result has been compliments from co-workers and others who have picked up th
by bondolo 6y ago
I have been following this advice for about five years with my scripts and the best result has been compliments from co-workers and others who have picked up the scripts and felt like they had a much better understanding of what the scripts were doing.
Combined with use of shellcheck and shfmt working in shell scripting has come a long way in the last couple years. I still feel like BASH is a dead end--the quoting and whitespace issues combined with the bifurcation caused by Apple not shipping Bash 4.0+ make moving to Python probably the better course in 2020.
- ramses0 6y agoIt's so unfortunate about Bash + Apple. Bash probably deserves to die out, but Apple has really pulled a bait-and-switch on OSX's *nix/bsd underpinnings over the years.
- saagarjha 6y agoDie out and be replaced by what?
- stjohnswarts 6y agoPowershell? It's available for linux now
- nobody9999 6y ago> Powershell? It's available for linux now I'd rather have my tonsils extracted through my ears. I went the other way[0] decades ago and never looked back. [0] https://www.cygwin.com https://www.cygwin.com
- stjohnswarts 6y agoI was mostly joking. The verbosity of powershell just makes me throw up in my mouth a little time every time I have to deal with it.
- nobody9999 6y agoOh noes! I've been Poe'd![0] But I really would recommend Cygwin[1] for anyone who needs to use Windows. Having a real shell makes a big difference. [0] https://en.wikipedia.org/wiki/Poe's_law https://en.wikipedia.org/wiki/Poe's_law [1] https://cygwin.com https://cygwin.com
- wodenokoto 6y agoAren't Apple helping out here by defaulting it zsh?