docs(functions): split RETURNS into EXIT STATUS and stdout RETURNS #77
No Reviewers
Labels
Clear labels
Area/CI
Area/Completions
Area/Components
Area/Config
Area/Docs
Area/Functions
Area/Integrations
Area/Prompt & Theme
Area/Scripts
Area/Tests
Compat/Breaking
Kind/Bug
Kind/Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Refactor
Kind/Security
Kind/Testing
good first issue
help wanted
.github/workflows and repository automation
completions/ - tab-completion scripts
The opinionated-component system (C1-C6)
config.fish and conf.d/ - startup and environment
docs/manual/ and the generated manual, man page, and site
functions/ - user-facing functions and helpers
integrations/ - third-party tool wiring
themes/ and prompt appearance
scripts/ - standalone helper scripts
tests/ - the syntax lint and functional suite
Breaking change that won't be backward compatible
Something is not working
Tooling, dependencies, and housekeeping
Documentation changes
Improve existing functionality
New functionality
Makes existing behavior faster or lighter
Restructures code without changing behavior
This is security issue
Issue or pull request related to testing
Well-scoped and self-contained; a good place to start
Maintainer is looking for someone to pick this up
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
No labels
Milestone
No items
No Milestone
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rootiest/fish-config#77
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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