fs.bash(...) builds a Bash interpreter rooted at the mounted filesystem. Commands run against MesaFS; no host shell is spawned.
Options
Mapping[str, str] | None
Environment variables for the shell. Defaults to empty. The host process environment is not inherited.
str | None
Working directory inside the mount. Defaults to
/.int | None
Per-exec wall-clock timeout in milliseconds. Defaults to 30 seconds.
exec()
exec(commands) takes one string containing one or more shell statements.
str
required
Shell script to execute.
Response
exec(...) returns ExecResult.
bytes
Standard output bytes.
bytes
Standard error bytes.
int
Process exit code.
0 indicates success.Command failures
Command failures usually return a non-zeroexit_code; they do not automatically raise.
Binary files
Usefs.read(...) for binary files. Text-oriented shell commands such as cat are intended for text output.
