The AI-written shell script that ran from the wrong folder and exited 0: `set -euo pipefail`, and where it still won't save you
This story is from 2026-10-22. It is preserved in the archive; the latest stories are on the live feed.
Result first: a four-line script whose cd failed (because BUILD_DIR was unset) kept going. It printed the wrong working directory, ran its "deploy" line, and exited 0. Adding one line, set -euo pipefail , made it stop on the first error with exit code 1: BUILD_DIR: unbound variable . #!/usr/bin/env…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-10-22 15:38 · DEV Community — AI
The AI-written shell script that ran from the wrong folder and exited 0: `set -euo pipefail`, and where it still won't save you