Description #
Rc is the command shell for the Plan 9 operating system, designed to simplify shell programming with a clean and concise syntax.
History #
Written by Tom Duff for Plan 9 at Bell Labs in the late 1980s, Rc was created as a modern alternative to the Bourne shell.
Hello World Code #
echo "Hello, World!"
How to Run #
Option 1: Online
(No official online runners)
Option 2: Local
Run on Plan 9 or Unix-like systems with the Plan 9 tools installed:
rc script.rc
Key Concepts #
- Simple, clean syntax
- Supports shell scripting and command execution
- No separate syntax for expressions and commands
- Uses whitespace and braces for grouping
- Supports pipelines and redirection
- Designed for readability and minimalism
- Influenced modern shells
- Supports variables and control flow
- Cross-platform with Plan 9 tools
- Encourages clean scripting style
Try It Online #
(None available)
Fun Facts #
- Rc was influential in shell design for modern systems.
- The shell avoids quoting complexities common in sh.
- It was written by a member of the Unix Bell Labs team.
- Rc scripts tend to be shorter and easier to read.
- Rc also inspired the design of the Es shell.