lang/pnut - The NetBSD Packages Collection

C compiler written in POSIX shell and generating POSIX shell scripts

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

Build dependencies

pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

(none)

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64pnut-0.0.20240724.tgz
NetBSD 10.0aarch64ebpnut-0.0.20240724.tgz
NetBSD 10.0alphapnut-0.0.20240724.tgz
NetBSD 10.0earmv6hfpnut-0.0.20240724.tgz
NetBSD 10.0earmv7hfpnut-0.0.20240724.tgz
NetBSD 10.0sparc64pnut-0.0.20240724.tgz
NetBSD 10.0sparcpnut-0.0.20240724.tgz
NetBSD 10.0vaxpnut-0.0.20240724.tgz
NetBSD 10.0x86_64pnut-0.0.20240724.tgz
NetBSD 9.0aarch64pnut-0.0.20240724.tgz
NetBSD 9.0alphapnut-0.0.20240724.tgz
NetBSD 9.0earmv6hfpnut-0.0.20240724.tgz
NetBSD 9.0earmv7hfpnut-0.0.20240724.tgz
NetBSD 9.0sparc64pnut-0.0.20240724.tgz
NetBSD 9.0x86_64pnut-0.0.20240724.tgz
NetBSD 9.3x86_64pnut-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.

Available build options

(none)

Known vulnerabilities

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.