Skip to content

Commit 35c3673

Browse files
sourcehawkclaude
andcommitted
docs(skills/bounding-heavy-commands): say in exit_as that the shell must get the signal too
The docstring said that a shell stops a joined line when the running command dies from a signal. The shell stops it only when it got the signal as well, as with a Ctrl-C at the terminal; the caller test shows bash going on when only the wrapper is signalled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 62b6e9d commit 35c3673

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎skills/bounding-heavy-commands/scripts/bounded_run.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,9 @@ def _note_stop(signum: int) -> None:
126126
def exit_as(code: int) -> None:
127127
"""Ends the process with the exit code, or, when a stop signal reached the wrapper, by that signal.
128128
129-
A shell stops a line of joined commands only when the command that runs dies from the signal.
130-
A caller that reads the status of a death by signal reads 128 plus the signal.
129+
A shell stops a line of joined commands only when the command that runs dies from the signal and the shell
130+
got the signal too, as with a Ctrl-C at the terminal. A caller that reads the status of a death by signal
131+
reads 128 plus the signal.
131132
"""
132133
if _stopped_by:
133134
signum = _stopped_by[0]

0 commit comments

Comments
 (0)