{
  "id": 5084934,
  "title": "The Hard Part of Grading a Terminal Command: Why String Matching Doesn't Work",
  "url": "https://urgent.news/2026/09/02/the-hard-part-of-grading-a-terminal-command-why-string-matching",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-02T12:17:20.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/karatass/the-hard-part-of-grading-a-terminal-command-why-string-matching-doesnt-work-jnh"
  },
  "original_language": "en",
  "account": null,
  "summary": "1. The problem: I wanted to auto-grade a terminal task 2. First attempt: compare the typed command to an expected command as a string — why it broke (infinite commands do the same job) 3. Second attempt: parse the output with regex — why it broke (different commands, equally valid output) 4. The fix: check simulated filesystem/process state at the end of the task instead 5. How I built this in JS…",
  "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."
}