Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



It'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.


Aren't Apple helping out here by defaulting it zsh?


Die out and be replaced by what?


Powershell? It's available for linux now


> 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


I 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.


Oh 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

[1] https://cygwin.com




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: