Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

tinysh

> 编程语言
Open source

Tiny UNIX shell, de-obfuscated, modernized, and "rewritten in Rust".

99 stars0 likes0 views
WebsiteGitHub

About

Tiny UNIX shell, de-obfuscated, modernized, and "rewritten in Rust".

tinysh

If you hold a UNIX shell to your ear, you can hear the C.

This is a tiny UNIX shell, implemented in Rust and in C. It is derived from the brilliant IOCCC submission back in 1990 by Sean Dorward. The repository includes the original IOCCC version, as well as the modernized deobfuscated version in C89, and a complete rewrite in Rust.

To run the shell do: cargo run. Or, better, rlwrap cargo run if you want to have a history of commands.

To run the C version do: cd c && make && ./tinysh.

The shell supports:

  • Simple commands, i.e. vim, echo hello world etc.
  • Pipelines, i.e. `ls | Cargo | wc -l'.
  • File redirection, i.e. echo hello > x and cat > append operator.
  • 2> or 2>&1 or anything more complex.
  • &, although that should be trivial to add.
  • Globs, variables, conditionals, loops, functions and it will never be a proper POSIX shell.

Only a toy. Use and explore at your own risk. However, PRs are welcome for bugfixes, or if the additional functionality would not increase the complexity.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言