rc-shell

Reference Plan 9 rc shell syntax for writing and debugging .rc scripts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/lneely/anvillm --skill rc-shell
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rc-shell
Source: https://github.com/lneely/anvillm/tree/main/skills/rc-shell
Command: npx skills add https://github.com/lneely/anvillm --skill rc-shell

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for writing and understanding shell scripts using the Plan 9 rc shell syntax, helping users avoid common pitfalls and write more efficient scripts.

Core Features & Use Cases

  • Syntax Reference: Detailed explanations of variables, control structures, functions, and operators specific to rc.
  • Bash Comparison: Highlights key differences from Bash to ease transition for users familiar with other shells.
  • Best Practices & Gotchas: Offers guidance on writing clean code and warns about common mistakes.
  • Use Case: You need to write a new .rc script to automate a task on a Plan 9 or compatible system, and you want to ensure you're using the correct syntax and best practices.

Quick Start

Consult the rc-shell skill for guidance on how to define a function in an rc script.

Frequently Asked Questions about rc-shell

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write functions in Plan 9 rc shell scripts?

To write functions in rc shell scripts, define them using the fn keyword followed by the function name and body. This skill provides syntax references and best practices for structuring rc functions.

What are the main syntax differences between rc shell and Bash?

The main differences between rc shell and Bash include variable assignment, command substitution, and control structures. Rc uses a distinct syntax that avoids common Bash pitfalls, which this reference highlights for easier transition.

How does pattern matching work in the rc shell?

Pattern matching in the rc shell works using specific operators designed for string manipulation. This skill details how to implement pattern matching correctly within your scripts.

What is the correct syntax for variable assignment in rc shell?

Variable assignment in rc shell uses a simple variable name followed by an equals sign and value, differing from Bash conventions. This reference clarifies the correct syntax to avoid common scripting errors.

How do I handle redirection in Plan 9 rc scripts?

Redirection in Plan 9 rc scripts uses specific syntax distinct from other shells. This skill provides a detailed reference for applying redirection correctly within your commands.

What are common mistakes when debugging rc shell scripts?

Common mistakes when debugging rc shell scripts involve incorrect variable assignment and control structure syntax. This reference warns about these gotchas and offers guidance for writing clean code.