Shell Sharp Edges

IFS, pipefail, traps, POSIX vs Bash, and production scripting landmines.

Beyond hello-world scripts: word splitting with IFS, strict errexit modes, signal traps, process substitution, and injection-safe patterns ops teams swear by.

Learn with Ada, your AI coding mentor — ask questions or tap I’m stuck in any lesson for a nudge without spoilers.

Practitioner6 lessons~4h
First lesson free

Try lesson 1 without an account. Sign in to unlock the remaining 5 lessons and save progress.

Course content

Parsing Traps

  • IFS and Word Splitting — The Silent BugFree15 min

Reliability

  • 🔒set -euo pipefail — The Holy Trinity14 min
  • 🔒trap — Cleanup on EXIT and Signals16 min

Power Tools

  • 🔒Process Substitution <( ) and >( )15 min

Portability

  • 🔒POSIX sh vs Bash — Know Your Shebang14 min

Security

  • 🔒Injection-Safe Argument Passing16 min