I was having a conversation on IRC and I wanted to demo some code generation I did this afternoon.
I think PHP is a good choice for code generation.
This in my feed today: 5 Modern Bash Scripting Techniques That Only A Few Programmers Know.
This is great: How to write idempotent Bash scripts. Some highlights for me were `blkid` and `mountpoint`.
Today in #lobsters I was referred to the GNU doco for Shell Functions.
Over on Safer Bash: avoid nesting I learned that extracting complex expressions to a named variable is a good idea so as to help catch error conditions.
Today via lobsters: Cool things I learned about Bash this week.
Via Hacker News today: Modulinos In Bash. “A modulino is a file which behaves like a library when it is imported, and like a script when executed.”
Today I read The Bourne shell and Bash aren’t the right languages for larger programs. It linked to this DKMS script which was interesting. TIL: ‘readonly’ in BASH.
Some discussion concerning Elegant bash conditionals. Personally I use both forms, variously.