MCPcopy
hub / github.com/superagent-ai/grok-cli / shellPathForScript

Function shellPathForScript

src/tools/bash.ts:528–530  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

526}
527
528function shellPathForScript(value: string): string {
529 return /^[A-Za-z0-9_./-]+$/.test(value) ? value : shellQuote(value);
530}
531
532function buildGuestWorkspacePrelude(settings: SandboxSettings): string {
533 if (!settings.guestWorkdir || !settings.syncHostWorkspace) {

Callers 1

wrapCommandForShuruFunction · 0.85

Calls 1

shellQuoteFunction · 0.85

Tested by

no test coverage detected