Skip to content

My little shell implementation written in Rust

Notifications You must be signed in to change notification settings

kino-ma/mysh-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysh-rs

My little shell implementation written in Rust

usage:

$ cargo run

Supported Features

Basic command execution

$ echo hoge
hoge

Pipes

$ echo hogehoge | sed s/hoge/fuga/ | rev
egohaguf

Redirections

$ ls > test.txt
$ echo hello >> test.txt
$ cat test.txt
Cargo.lock
Cargo.toml
README.md
src
test.txt
hello

Stdin from a file

$ tr . _ < Cargo.lock
# This file is automatically @generated by Cargo_
# It is not intended for manual editing_
[[package]]
name = "mysh2"
version = "0_1_0"

Here document

$ grep hello << EOF
hello
bye
hello world!
EOF
hello
hello world!

Here strings

$ sed s/$/world/ <<< hello
helloworld

About

My little shell implementation written in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages