Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Things I Wish I'd Known About Bash (2017) (zwischenzugs.com)
32 points by gautamsomani on Dec 8, 2021 | hide | past | favorite | 7 comments


Nice intro, but it's lacking a more in depth explanation.

But there are good resources like the bash hackers wiki [0] and Greg's BashGuide [1] for more shell craziness.

[0] https://wiki.bash-hackers.org/ [1] https://mywiki.wooledge.org/BashGuide


IMHO every such collection of Bash tips should include information on POSIX shell compatibility of each construct. Wait, has the author written a whole book on Bash? Does it ever mention the existence of other shells? P.S.: It does. But not much more than that.


The book is not aimed at advanced knowledge or use (same with my Git book). The Hard Way method is designed to teach people for practical usage and understanding. There's plenty of great resources for the more formal stuff out there, but less for how to get to the point where you can understand them.


Nice article. It convinced me to use bash even on Windows rather than installing PowerShell everywhere.


What a junk article, if it convinced you to do a wrong thing.


:h was new to me, I have always used ${path##*/} to achieve the same thing.


1. Use Zsh




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

Search: