Bash Has a Call Stack (And It's Glorious)

Sometimes Bash quietly hides features that make you stop, blink, and say: “Wait… that’s been there the whole time?! ” This post is about one of those features: Bash knows which function you’re in — and even keeps a call stack . You can use it for logging, debugging, and some truly delightful shell wizardry. Printing the Name of the Current Function If you’re inside a Bash function and want to know…