Repository navigation
Restructure the README for a first-time reader - #38
Merged
Merged
Conversation
The README opened with install and one call, then went straight into $? semantics and five bullets on interruption edge cases, before the examples of the options and the three methods. A reader with no context could not restate the last of those bullets: "the cleanup" was never defined, "deferred interrupts" was never explained, and the timeout that interrupts a call had no stated source. Reorder it as pitch, install, usage, options, return value, then one section for failures and interruptions. That section defines reaping and the cleanup once, says that a second interruption is held until the cleanup ends, and names the interruptions it covers. Add what a caller needs and the README left out: the command reads an empty stdin; a background process holding its output keeps the call waiting; a redirect file that cannot be opened raises, and the files are truncated before the program starts; secrets belong in env:, since the exception message includes every argument; arguments go through to_s; and a program may still read a user's value as an option. Fix the facts on the way: $? is a variable, and a case that leaves it not describing the command says so without promising nil or the previous status, which differ between Rubies. The interpolated command string is looked up as `echo ;blah`, only a command that changes its real user ID escapes the signals, and the option Hash's values, not its keys, choose the files and environment. Replace "Developing" and "Status", which addressed an unnamed "I" and cited an unnamed site, with a one-line contributing note, and the copyright line, which disagreed with LICENSE, with the licence name.
orien
force-pushed
the
readme-restructure
branch
from
November 29, 2026 23:54
884c4c6 to
c09f4b4
Compare
orien
marked this pull request as ready for review
November 30, 2026 00:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
The README opens with install and one call, then goes straight into
$?semantics and five bullets on interruption edge cases before it shows the options or the three methods. A reader with no context of the project can't follow the last of those bullets: "the cleanup" is never defined, "deferred interrupts" is never explained, and the timeout that interrupts a call has no stated source. It also leaves out things a caller needs, such as the empty stdin and what happens when a redirect file can't be opened.PE-8869
Change
Reorders the README as pitch, install, usage, options, return value, and one section for failures and interruptions.
env:, theto_sconversion, and--before user-supplied values.$?is a variable,"echo #{file}"is looked up asecho ;blah, only a command that changes its real user ID escapes the signals, and atraphandler can add a second to the cleanup.LICENSE.Considerations
$?doesn't describe the command, the README says only that, without promising nil or the previous status: CRuby and TruffleRuby leave different values.