Paul's Weblog 2/4/2021

Robbed Of My Glob

Read Original

The author describes a critical error in his website deployment script where a misquoted glob in an `rm -rf` command could have wiped his entire server root. He explains the Bash footgun, the fix using `${VAR:?}` syntax, and how the bug went unnoticed for years. The article is a technical cautionary tale about shell scripting safety.

Robbed Of My Glob

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week