Crates.io | cicada |
lib.rs | cicada |
version | 0.9.38 |
source | src |
created_at | 2017-04-02 13:28:26.544083 |
updated_at | 2023-08-12 09:02:28.355939 |
description | A simple Bash-like Unix shell. |
homepage | |
repository | https://github.com/mitnk/cicada |
max_upload_size | |
id | 9387 |
size | 410,394 |
Cicada is a simple Unix shell written in Rust.
$ docker run --rm -it mitnk/cicada
(in-cicada) $ cinfo
$ ls | head -n3
Desktop
Documents
Downloads
$ echo foo,bar | awk -F "," '{print $2, $1}'
bar foo
$ ls file-not-exist 2>&1 | wc > e.txt
$ cat e.txt
1 7 46
$ 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.
$ echo foo; echo bar
foo
bar
$ echo foo && echo bar
foo
bar
$ echo foo || echo bar
foo
$ 1 + 2 * 3 - 4
3
$ (1 + 2) * (3 - 4) / 8.0
-0.375
$ 2 ^ 31
2147483648
Read APIs here: https://docs.rs/cicada/.