Skip to content

fix(help): list while/until as supported in help output#242

Draft
AlexandreYang wants to merge 1 commit intomainfrom
alex/help-fix
Draft

fix(help): list while/until as supported in help output#242
AlexandreYang wants to merge 1 commit intomainfrom
alex/help-fix

Conversation

@AlexandreYang
Copy link
Copy Markdown
Member

Summary

  • The control-flow feature in help advertised while and until as unsupported, but the interpreter actually supports both (and SHELL_FEATURES.md already documents them as ✅).
  • Verified by running scripts like X=0; while [ "$X" != stop ]; do echo iter; X=stop; done against the built binary — they iterate normally and exit 0.
  • Moved both forms from the Unsupported list to the Supported list under control-flow, refreshed the feature one-liner (for/while/until/if/...; no case/select/functions.), and dropped while/until from the top-level unsupported summary.
  • Updated the pinned strings in builtins/tests/help/help_test.go and tests/scenarios/cmd/help/unrestricted.yaml so they assert the new wording.

All other commands and features listed in help were verified to be present (33 commands, 8 features) — this was the only mismatch.

Test plan

  • go test ./builtins/... ./tests/... (passes locally)
  • make fmt clean
  • rshell -c 'help control-flow' shows while/until under Supported
  • rshell -c 'help' summary no longer claims while/until is unsupported

The control-flow feature description and unsupported-summary advertised
while and until loops as unsupported, but the interpreter has supported
both for some time (and SHELL_FEATURES.md already documents them as
supported). Move them from Unsupported to Supported and update the
pinned strings in help_test.go and the unrestricted help scenario.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant