Files
hermes-agent/hermes_cli
unsupportedpastels 24b9f0f8c5 fix(cli): read a POSIX launcher's interpreter the way sh does
_launcher_python() took the first token of a POSIX wrapper's exec line by
stopping at the first closing quote. The writer quotes with shlex.join,
which renders an apostrophe as '"'"', so an owner whose path holds one
("owner's home") read back as a truncated, nonexistent interpreter. The
guard then saw a dead launcher and republished it to the launching root,
and owning_home_root() could not find the owner: the #123238 bricking
again, for a valid install path.

Lex the first token with shlex in POSIX mode; Windows .exe/.cmd parsing
is unchanged. Only the first token is read, since the rest of the line
opens a multi-line -c argument.

Co-authored-by: Finn763 <165816600+finn763@users.noreply.github.com>
2026-10-03 22:46:14 -04:00
..
…
…
…
…
…