{"version":"2.1.328","anchor":"shell-wrapper-script-that-kills-the-shell-when-a-stdin-pipe","canonical_anchor":"shell-wrapper-script-that-kills-the-shell-when-a-stdin-pipe","heading":"A shell script that stops a shell once its controlling program goes away","tier":"internal","area":"Shell","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/shell-wrapper-script-that-kills-the-shell-when-a-stdin-pipe","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### A shell script that stops a shell once its controlling program goes away\n\nClaude Code includes a new script that kills a shell when the pipe it watches closes, and kills its child after it exits\n\n**What**\n\nClaude Code includes a new shell script. It watches a pipe (a channel that connects it to another program) in the background, and kills the shell when that pipe closes. It also kills the child program once that program exits.\n\n**Why**\n\nThis can stop shell processes from being left running after the program that started them is gone.\n\n- Area: Shell\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}