Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
370
def
_shell_quote(s: str) -> str:
371
""
"Quote a string for safe use in shell commands."
""
372
return
"'"
+ s.replace(
"'"
,
"'\"
'\"'
") + "
&
#x27;"
Callers
1
_exec_fs_write
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected