docs(functions): split RETURNS into EXIT STATUS and stdout RETURNS #77
Reference in New Issue
Block a user
Delete Branch "docs-exit-status-returns"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
# RETURNS→# EXIT STATUSacross all 83 documentedfunctions/*.fishheaders.RETURNSpreviously conflated fish's$statusexit code with genuine stdout/printed output (e.g.rmlisted0/1as if they were print values).# RETURNSas a distinct label, applied only to the 15 functions that genuinely print something to stdout, with the printed-content prose split out of the old table.docs/build-manual.py'sENTRY_HEADSso generated docs renderExit Status:beforeReturns:.docs/manualtools.py'sSECTIONSconstant and the repo'sAGENTS.mdlabel order / label-usage guidance to match.docs/verify-manual.pyregression tests: EXIT STATUS bodies must never contain stray stdout/printed language, and Returns: must always render after Exit Status: when both are present.docs/fish-config.md(generated concat artifact).Test plan
python3 docs/verify-manual.pypasses 32/32 (pre-existing WARN about 8 functions lacking# CATEGORYis unrelated and expected)fish -non a sample of changed function files (e.g.functions/rm.fish,functions/gi.fish) shows no syntax errorsconfig-help rmandconfig-help giin a fish shell showExit Status:beforeReturns:, withReturns:describing only printed stdout contentman fish-config(after regeneratingdocs/fish-config.1) for the same orderingReturns:section