Pnut.

A C to POSIX Shell Compiler
you can Trust

Write portable shell scripts
directly in C

No shell scripting required.

Pnut is an C to POSIX shell transpiler that can compile C programs into human-readable shell scripts. This unique approach ensures that your executables are highly portable, running seamlessly on any system with a POSIX-compliant shell. Say goodbye to the constraints of platform-specific binaries and embrace the future of software portability with pnut.

Write C

Write your script in plain-old C, no new language to learn.

Write Image
Human readable

Pnut's output is designed to be human-readable, making it easy to inspect, debug and maintain code.

Compile Image
Runs everywhere

Pnut script runs on any POSIX-compliant shell, from bash to zsh, across all major operating systems including Linux, macOS, and Windows.

Try us out

Shell

Our Motivation

Example Image

In today's world, ensuring the security and reproducibility of your builds is paramount. With pnut, you can achieve a complete build toolchain starting from just a compatible POSIX shell and human-readable source files. This method fosters a secure environment where builds are consistent and trustworthy, mitigating risks associated with pre-built binaries.