kidd/scripting-field-guide
View on GitHub ↗ ★ 57 CSS
A booklet on mid-advanced scripting techniques
4 mentions on Hacker News by 1 person: 0 stories, 4 comments · first 2020-09-07 · latest 2026-07-26
20082026
-
…it returns non-0" semantics. I've also written about this and other bash tricks over the years in https://github.com/kidd/scripting-field-guide/blob/master/bo... . You might like them :)
comment by rgrau · 2026-07-26 · in A shell colon does nothing. Use it anyway -
…worry about the last line being a bit different than the rest I created a list of similar tricks in https://github.com/kidd/scripting-field-guide in case anyone wants to take a look
comment by rgrau · 2026-03-26 · in Shell Tricks That Make Life Easier (and Save Your Sanity) -
…way to have more than one callback per signal, and created a system to have an array of callbacks: https://github.com/kidd/scripting-field-guide/blob/master/bo... A nice bonus is that it also keeps the return value of the last non-callback…
comment by rgrau · 2023-06-20 · in “Exit traps” can make your Bash scripts more robust and reliable (2013) -
…me 'stealing' some stuff for a kind of booklet I'm working on with several shell tips and tricks. https://github.com/kidd/scripting-field-guide/ PS: Any comments/PRs are super welcome there too
comment by rgrau · 2020-09-07 · in Bash Pitfalls