MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / _shell_quote

Function _shell_quote

src/benchmarks/swe_bench_verified/docker_exec_client.py:370–372  ·  view source on GitHub ↗

Quote a string for safe use in shell commands.

(s: str)

Source from the content-addressed store, hash-verified

368
369
370def _shell_quote(s: str) -> str:
371 """Quote a string for safe use in shell commands."""
372 return "'" + s.replace("'", "'\"'\"'") + "'"

Callers 1

_exec_fs_writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected