pub(crate) fn locate_bash() -> Result<PathBuf>Expand description
Locate bash. Order:
$AGENTMUX_BASH— explicit override from agentmux-srv config.$BASH— set by bash itself when it spawns a child; reliable inside Claude Code’s hook context because Claude shells out to bash to run the hook.which bashon PATH.- Well-known Windows paths (Git Bash, msys2). Skipped on Unix.
Fail-loud if not found — pass-through fallback would hide the issue.