← Thursday, October 8, 2026Languages & toolsDeep dive

Brut routes Unix commands through a portable POSIX shell script

brut.sh 27 min read Editor score 7/10

Brut dispatches commands by executable name and first argument, extending `PATH` to find corresponding command programs; it aims to run on contemporary Unix systems with only POSIX utility dependencies. The annotated implementation is useful to engineers building portable command-line tools.

What
Brut is a single-file POSIX shell script that routes Unix command-line programs to separate commands.
How
It extends `PATH`, searches for a command such as `myprog-build`, and runs it; the project uses small executables and shared scripts.
Why it matters
Its POSIX-only approach lets engineers compose independently testable command-line parts across Unix hosts without extra runtime dependencies.
finds extends finds runs shell Brut PATH myprog-build
Brut uses PATH to locate and run a command selected by the program name and arguments. Sketched from the article's own text.

Discussion

Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.

Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.