macOS
brew install clocal Homebrew formula metadata
brew
Compile and execute C "scripts" in one go. Version 0.15.1 via Homebrew; verified from local package data.
install
brew install clocal Homebrew formula metadata
overview
Compile and execute C "scripts" in one go
history
c is a small shell-script front end for compiling and running C or C++ files in one command. Its niche is treating small C programs like scripts while still letting the user choose GCC, Clang, TCC, or another compiler through the normal CC environment variable.
The upstream Git history begins on 23 February 2015 with the initial c script and shebang support. The README frames the project as a convenience wrapper rather than a compiler: it compiles and executes C scripts in one go, and later added a cache so repeated runs can avoid unnecessary rebuilds.
The README documents installation through source download, AUR, bpkg, and Homebrew. Homebrew packaging gives it a low-friction macOS path for the exact use case the README highlights: putting a c executable on PATH and using it in shebangs or direct commands.
Typical usage is `c hello.c` or a shebang such as `#!/usr/bin/c`. For multi-file programs, compiler flags and additional source files are passed in the first quoted argument, and runtime arguments follow after that.
The tool honors CC, supports cache tuning through C_CACHE_SIZE and C_CACHE_PATH, and offers `--clear-cache` for cache cleanup.
The package is a classic tiny-CLI package-manager curiosity: one executable, almost no ceremony, and enough ergonomics to make C feel like a scripting language for quick local utilities.
It is also a useful contrast with `tcc -run`: the README explicitly says c is not tied to one compiler, making it a compiler-agnostic runner rather than a language implementation.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
c | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/ryanmjacobs/c
install metadata
| Package key | brew:c |
|---|---|
| Version | 0.15.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/c |
| Homepage | https://github.com/ryanmjacobs/c |
| Repository | https://github.com/ryanmjacobs/c |
| Upstream docs | https://github.com/ryanmjacobs/c#readme |
| License | MIT |
| Source archive | https://github.com/ryanmjacobs/c/archive/refs/tags/v0.15.1.tar.gz |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | c |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.