Pnut compiles a reasonably large subset of C99 to human-readable POSIX shell scripts. It can be used to generate portable shell scripts without having to write shell. Its main uses are: - As a transpiler to write portable shell scripts in C - As a way to bootstrap a compiler written in C with an executable version that is still human readable Main features: - No new language to learn -- C code in, shell code out - The human-readable shell script is easy to read and understand. - A runtime library including file I/O and dynamic memory allocations - A preprocessor - Integrates easily with existing shell scripts
OS | Architecture | Version |
---|---|---|
NetBSD 10.0 | aarch64 | pnut-0.0.20240724.tgz |
NetBSD 10.0 | aarch64eb | pnut-0.0.20240724.tgz |
NetBSD 10.0 | alpha | pnut-0.0.20240724.tgz |
NetBSD 10.0 | earmv6hf | pnut-0.0.20240724.tgz |
NetBSD 10.0 | earmv7hf | pnut-0.0.20240724.tgz |
NetBSD 10.0 | sparc64 | pnut-0.0.20240724.tgz |
NetBSD 10.0 | sparc | pnut-0.0.20240724.tgz |
NetBSD 10.0 | vax | pnut-0.0.20240724.tgz |
NetBSD 10.0 | x86_64 | pnut-0.0.20240724.tgz |
NetBSD 9.0 | aarch64 | pnut-0.0.20240724.tgz |
NetBSD 9.0 | alpha | pnut-0.0.20240724.tgz |
NetBSD 9.0 | earmv6hf | pnut-0.0.20240724.tgz |
NetBSD 9.0 | earmv7hf | pnut-0.0.20240724.tgz |
NetBSD 9.0 | sparc64 | pnut-0.0.20240724.tgz |
NetBSD 9.0 | x86_64 | pnut-0.0.20240724.tgz |
NetBSD 9.3 | x86_64 | pnut-0.0.20240724.tgz |
Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.
The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.
Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.
Problem reports, updates or suggestions for this package should be reported with send-pr.