Skip to content

[Termux] setsid bash -lc fails on Termux (-- separator missing) #37124

@Jensenwgd

Description

@Jensenwgd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/gatewayGateway runner, session dispatch, deliverytool/terminalTerminal execution and process managementtype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions