Image 1 of 2: Terminal trace of an unknown command through keyword, alias, function, builtin and each PATH entry
A Bash tool, ct, that models Bash's own resolution order (aliases, functions, keywords, builtins, then $PATH) and follows the chosen command through symlinks, /etc/alternatives, /usr-merge, shebangs and ELF interpreters to the kernel's execution target, flagging shadowed names on the way.
Trade-offs
- Its own resolution engine, not a wrapper over
type,whichorcommand -v. It explains why a name wins and what it shadows, but must track Bash's rules itself. - It observes the running shell without changing how Bash resolves commands. The hash table is inspected and compared with a fresh
$PATHwalk, never edited.
Q&A2
Bash caches command locations. When the cached path differs from what a fresh walk of the current
$PATH finds, ct reports both paths and suggests hash -d for that name.The resolved path can pass through symlinks or alternatives to another file, and the kernel then loads that file's ELF interpreter or the interpreter on its shebang line.
Reviews
Loading reviews
More in Shell
See all 4 →- Proxmox ManagerTerminal manager for Proxmox VE guests, with health checks and alerts
bash-agentMinimal coding agent runtime in pure Bash and awk, with C, Go and Rust ports
MuxMasterProfile-driven video repacker that converts only what a target needs- journalotJournaling from the terminal: Markdown files in the editor, committed to git
More in CLI tools
See all 74 →- ZeroboxDeny-by-default process sandbox with per-host secret injection
blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
jc-rsjc rewritten as one static binary that turns command output into JSON- pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
quiverDump, load, copy and stream MySQL, MariaDB and TiDB from one consistent snapshot
haxMinimalist terminal coding agent written in C
More in Developer tools
See all 88 →- EpuppBrowser extension that opens a live ClojureScript REPL into any web page
ResonanceA local-first API client with no account, collections kept as YAML files
PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
PandaWardLocal application security assessment that reports what it couldn't decide
ScalexScala code navigation for coding agents, from source and without a build
polyOne Rust binary that lints and formats about 30 languages