@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
11 lines • 589 B
TypeScript
/**
* Join tokens into one shell line the parser reads back as exactly
* those tokens (Python's `shlex.join`). Internal code that synthesizes
* a line from tokens it already holds (xargs, timeout) must use this
* instead of `join(' ')`: a plain join is re-parsed by the shell, so a
* token with whitespace splits and `$(...)` in a token executes. A byte
* UTF-8 cannot read goes in as `$'\xHH'`, since the parser reads UTF-8
* only and the escape expands back to that byte.
*/
export declare function shellJoin(tokens: readonly string[]): string;
//# sourceMappingURL=join.d.ts.map