{
  "id": 16995899,
  "title": "A note on testing shell scripts",
  "url": "https://urgent.news/2026/10/29/a-note-on-testing-shell-scripts",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-29T02:40:38.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/frankie_works/a-note-on-testing-shell-scripts-3dme"
  },
  "original_language": "en",
  "account": null,
  "summary": "I write a lot of small bash scripts and almost never test them. This week I added two tests with bats and found a quoting bug that would have eaten a filename with spaces. The tests aren't clever: make a temp dir, run the script, assert output. Ten lines. I won't pretend this makes bash pleasant, but a couple of tests turn it from 'hope it works' into 'probably works'.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}