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.

Practitioner6 lessons~4h
0/6 complete

Course content

Parsing Traps

  • IFS and Word Splitting — The Silent Bug15 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