What I always find frustrating about that, is that even a colleague with much more Bash experience than me, will ask me what those options are, if I slap a set -euo pipefail or similar into there.
I guess, I could prepare a snippet like in the article with proper comments instead:
set -e # exit on error
set -u # exit on unset variable
set -o pipefail # exit on errors in pipes
Maybe with the whole trapping thing, too.
But yeah, will have to remember to use that. Most Bash scripts start out as just quickly trying something out, so it’s easy to forget setting the proper options…
























They don’t type out the 0s and 1s, no. 😅
@[email protected] wrote “Assembly/Binary”, because an Assembly language is basically just a list of aliases (or mnemonics) for the different combinations of 0s and 1s.
For example,
HLT(Halt) may translate to00000001, which is then already what your CPU understands.In practice, these lists for the different Assembly languages will look like this: https://en.wikipedia.org/wiki/Opcode#Sample_opcode_table