TIL: Bash Tidbits (part I)
Every now and then I peruse usr/share/doc and read the resident documentation in my OS. Today, I went through the Bash manual while sitting idle without an internet connection. I picked up a few nuggets along the way: |& is shorthand for 2>&1, as it sends cmd1’s stderr, in addition to its stdout to cmd2’s stdin via the pipe. ;& is analogous to a continue keyword in most languages. In case of switch statements, it forces the execution to fallthrough.