86 releases (5 stable)

new 1.1.2 Apr 19, 2025
1.0.3 Oct 31, 2024
0.9.41 Sep 27, 2024
0.9.38 Aug 12, 2023
0.6.3 Jul 22, 2017

#91 in Development tools

Download history 4/week @ 2025-02-05 262/week @ 2025-02-12 44/week @ 2025-02-19 14/week @ 2025-02-26 135/week @ 2025-04-09 174/week @ 2025-04-16

309 downloads per month

MIT license

310KB
9K 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

~44MB
~746K SLoC