63 releases

0.9.22 Jul 24, 2021
0.9.19 May 23, 2021
0.9.17 Jan 10, 2021
0.9.15 Nov 22, 2020
0.6.3 Jul 22, 2017

#876 in Command line utilities

Download history 9/week @ 2021-08-08 74/week @ 2021-08-15 16/week @ 2021-08-22 7/week @ 2021-08-29 7/week @ 2021-09-05 5/week @ 2021-09-12 13/week @ 2021-09-19 66/week @ 2021-09-26 3/week @ 2021-10-03 7/week @ 2021-10-10 2/week @ 2021-10-17 3/week @ 2021-10-24 51/week @ 2021-10-31 70/week @ 2021-11-07 5/week @ 2021-11-14 11/week @ 2021-11-21

150 downloads per month

MIT license

285KB
8K SLoC

Cicada Unix Shell

Latest Version

Cicada is a simple Unix shell written in Rust.

Documents

Try out cicada with Docker

$ docker pull mitnk/cicada
$ 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/.

FAQs

Dependencies

~28MB
~568K SLoC

>n`