Crates.io | rash-shell |
lib.rs | rash-shell |
version | 0.2.0 |
source | src |
created_at | 2018-11-18 22:07:21.228313 |
updated_at | 2021-04-14 19:01:20.968617 |
description | A bourne-compatible shell inspired by dash |
homepage | |
repository | https://github.com/absurdhero/rash-shell |
max_upload_size | |
id | 97507 |
size | 64,901 |
A bourne shell inspired by dash.
These goals guide design decisions and the feature roadmap. Once the shell is complete, we can look at more ambitious goals like implementing features beyond POSIX, extending the programming language, and more aggressive speed optimizations.
The guiding goals include:
The overall design is inspired by the dash shell which is the default
/bin/sh
on Debian and Ubuntu. It has a long lineage dating back to
early bourne shells.
Dash was built for speed, POSIX compliance, and a small codebase. It's a great source of design wisdom and serves as a good reference implementation when the POSIX spec is unclear.
Rash's parser and evaluator take inspiration from dash. Rash uses a parser generator called LALRPOP to generate an AST. It then walks the AST evaluating statements. The grammar and AST are based on the grammar and terminology defined by POSIX which makes it easy to use the standard as a reference for understanding rash.
Contributions are welcomed! The status list below is a great place to find a feature to implement. If the codebase looks too complicated at first, there are several features that don't require changing much existing code.
Open a GitHub Issue for questions, requests, or patches.
The project is licensed under the Apache License 2.0.
With the exception of the most obscure features, syntax and functionality are either fully implemented or not at all. This means that you can be confident when using the features marked as complete below. Any errors or omissions in existing functionality are bugs and may be treated as such.
Features:
&
)$?
)-c
, -l
)set
commandif
, while
, case
)Interactive Mode:
Quality Improvements: