Skip to content
PBS 153 – Bash: Functions & Scope episode artwork

EPISODE · Jul 30, 2023 · 1H 6M

PBS 153 – Bash: Functions & Scope

from Programming By Stealth

In Programming By Stealth, we've come to the end of our journey with Bash. I'll be sad to have it complete because as I tell Bart in this episode, I've really enjoyed it. Next time he will do a final bow-tying episode where he brings everything we learned together in one set of notes as a handy reference guide. In this episode, he explains how functions work in Bash, and after about the 12th time he repeated it, I understand that functions we create in Bash work just like built-in functions such as `ls` or `cat`. After walking us through some easy-to-follow scripts to illustrate this and show us the syntax, we go into a harder concept: scope. We learn that Bash does scope differently from pretty much every other language, and so he teaches us how to avoid spooky action at a distance because of this different way of dealing with scope. Protecting ourselves isn't actually hard but it is very important to understand why we need to do this. You can find Bart's fabulous tutorial shownotes at pbs.bartificer.net.

Episode metadata supplied by the publisher feed · Published Jul 30, 2023

Embed this episode

Ready to play

PBS 153 – Bash: Functions & Scope

0:00 1:06:32

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Programming By Stealth?

This episode is 1 hour and 6 minutes long.

When was this Programming By Stealth episode published?

This episode was published on July 30, 2023.

Can I download this Programming By Stealth episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!