PBS logo: a tiny ninja with a pale face surrounded on either side by two squiggly brackets denoting programming. Get it? Ninja is stealthy!

CCATP #765 — Bart Busschots on PBS 149 of X — Better Arguments with POSIX Special Variables and Options

In this rather mind-bendy episode of Programming By Stealth, Bart Busschots takes into the weird world of POSIX special variables and options. He refers to some of them as being like handling nuclear power, at one point he suggests mind-altering drugs must have been involved in the design, and he even compares one of our newly learned tools to a chainsaw.

He powered us through amidst my many interruptions with questions to where we can now write shell scripts that take flags and optional arguments using getopts. The final form of the syntax is very readable but knowing the reasons behind each bit is crucially important.

You can find Bart’s fabulous tutorial shownotes at pbs.bartificer.net.

mp3 download

Read an unedited, auto-generated transcript: CCATP_2023_04_15

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top