Bug
Hermes Gateway launches shell commands via setsid bash -lc on Termux. The -lc flags are interpreted by setsid instead of being forwarded to bash, causing command execution to fail silently.
Root Cause
POSIX requires -- to separate options destined for the child process.
Fix
Insert -- between setsid and bash:
[setsid_bin, "--", "bash", "-c", shell_cmd]
Environment
- OS: Android (Termux)
- Hermes version: 0.15.x
Bug
Hermes Gateway launches shell commands via
setsid bash -lcon Termux. The-lcflags are interpreted bysetsidinstead of being forwarded tobash, causing command execution to fail silently.Root Cause
POSIX requires
--to separate options destined for the child process.Fix
Insert
--betweensetsidandbash:Environment