74 releases

Uses new Rust 2021

new 0.9.34 Dec 5, 2022
0.9.33 Nov 20, 2022
0.9.32 Jul 17, 2022
0.9.29 Feb 24, 2022
0.6.3 Jul 22, 2017

#351 in Development tools

Download history 9/week @ 2022-08-13 95/week @ 2022-08-20 11/week @ 2022-08-27 10/week @ 2022-09-03 225/week @ 2022-09-10 4/week @ 2022-09-17 9/week @ 2022-09-24 13/week @ 2022-10-01 8/week @ 2022-10-08 5/week @ 2022-10-15 10/week @ 2022-10-22 78/week @ 2022-10-29 82/week @ 2022-11-05 10/week @ 2022-11-12 42/week @ 2022-11-19 8/week @ 2022-11-26

215 downloads per month

MIT license

300KB
8K SLoC

Cicada Unix Shell

Latest Version

Cicada is a simple Unix shell written in Rust.

Documents

Try out cicada with Docker

$ docker run --rm -it mitnk/cicada
(in-cicada) $ cinfo

Features

Run programs and pipelines

$ ls | head -n3
Desktop
Documents
Downloads

$ echo foo,bar | awk -F "," '{print $2, $1}'
bar foo

With redirections

$ ls file-not-exist 2>&1 | wc > e.txt
$ cat e.txt
       1       7      46

Command substitution

$ ls -l `which sh`
-r-xr-xr-x  1 root  wheel  618512 Oct 26  2017 /bin/sh

$ echo "Time is $(date)."
Time is Sun Sep  2 12:04:13 CST 2018.

Run multiple commands (with logical)

$ echo foo; echo bar
foo
bar

$ echo foo && echo bar
foo
bar

$ echo foo || echo bar
foo

Math arithmetic directly in the shell!

$ 1 + 2 * 3 - 4
3
$ (1 + 2) * (3 - 4) / 8.0
-0.375
$ 2 ^ 31
2147483648

Cicada is also a library (BETA)

Read APIs here: https://docs.rs/cicada/.

Dependencies

~29MB
~605K SLoC