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 #759 — Bart Busschots on PBS 145 of X — Shell Conditionals

Bart continues his miniseries on shell scripting by teaching us conditionals in the shell. In order to explain why conditionals are a bit odd in shell scripting, Bart first walks us through how it was originally done and then shows us the evolution to a much better method. It’s still weird, and many things are opposite of what you’d expect (like how 4 is actually > 10), but he gets us there in the end. I was most excited to finally learn what fi means, which shows up in shell scripting and I’d seen before in AppleScript.

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

mp3 download

Read an unedited, auto-generated transcript: CCATP_2023_02_18

Leave a Reply

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

Scroll to top