Conversation
Co-authored-by: danregima <10253941+danregima@users.noreply.github.com>
Co-authored-by: danregima <10253941+danregima@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Initiate next steps for project progression
Add bash-to-rc syntax converter and comprehensive rc syntax guide for AI tools
Mar 7, 2026
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.
Implements the "next steps" from
IMPLEMENTATION_SUMMARY.md: expand rc command generation support and add comprehensive syntax examples for AI tool developers.New: bash-to-rc converter
examples/bash_to_rc_converter.py— importable Python module + CLI that translates common bash/sh patterns to rc equivalents:Handles: command substitution, variable assignments/braces/length, for/while/if/elif/else control flow, function definitions, stderr redirection, shebang, and arithmetic expansion (flagged with awk alternative + TODO).
convert-to-rc.sh— thin shell wrapper for the converter.New: RC syntax reference
RC_SYNTAX_GUIDE.md— dense bash↔rc side-by-side reference covering variables, control flow, functions, redirection, lists, error handling, and common AI-generated command patterns. Intended as a quick reference for AI tools generating rc commands.Tests
Three new tests added to
test-integration.sh(Tests 6–8): converter correctness for each major syntax pattern, wrapper sanity check, and guide presence/content validation.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.