/mysh-rs

Complete rewrite of mysh basic shell interpreter to rust programming Language.

Primary LanguageRustMIT LicenseMIT

mysh-rs

Intro

This is a clone of swoorup/mysh written in c for learning rust language. This project is also my personal testbed for rust nightly features 😂

This shell is severely limited and extremely basic as of now. It supports the following features:

  • Pipes ps aux | grep bash
  • Redirection ls / > listing
  • Background task sleep 1&
  • Chaining commands sleep 5; echo Hello World

A small demo

asciicast

See swoorup/mysh/README.md for implementation details.

Building

  1. Ensure you have rust nightly toolchain installed (1.54.0-nightly)
  2. Run cargo test to run all tests
  3. Run cargo run to start the shell