pub fn base_command(command: &str) -> StringExpand description
Extract the first real command word, skipping leading KEY=VALUE assignments.
Uses shlex for correct handling of quoted values like FOO="bar baz".
Returns the basename of the command (e.g. /usr/bin/ls → ls).