Forgive me Bash, for I have sinned,
My pipes were janky, loops ill-pinned.
I used cat
where none was due,
And fed it straight to awk
and sed
too.
I grep
ped in vain, with flags askew,
Then nested if
s till hell broke through.
My scripts grew wild – no docs, no tests–
Just hacks on hacks and messy nests.
I echoed vars I didn't quote,
Then wondered why my paths broke float.
I eval
'd code from who knows where–
A demon's whisper filled the air.
I cd
'd into $1/tmp
,
Then rm -rf
-ed like a chump.
I blamed the shell when things went bad,
But deep inside, I knew I had...
Forgotten checks for exit codes,
Let silent fails erode my nodes.
I spawned ten thousand zombie shes,
With backgrounded while true
disease.
Oh POSIX Lord, please show me light–
Let shellcheck
guide my scripts to right.
Grant me patience for IFS
,
And strength to debug TLS.
I vow to lint, to test, to log,
To write clean pipes and clear the fog.
No more will $@
slip through cracks–
I'll trace my stack and roll it back.
For now I know, with bashy grace,
That discipline can save this place.
But still I keep a dark alias:
alias pls="sudo !!"
Amen.