MCPcopy Index your code
hub / github.com/codeaashu/claude-code / shellQuote

Function shellQuote

src/utils/deepLink/terminalLauncher.ts:519–521  ·  view source on GitHub ↗

* POSIX single-quote escaping. Single-quoted strings have zero * interpretation except for the closing single quote itself. * Only used by buildShellCommand() for the AppleScript paths.

(s: string)

Source from the content-addressed store, hash-verified

517 * Only used by buildShellCommand() for the AppleScript paths.
518 */
519function shellQuote(s: string): string {
520 return `'${s.replace(/'/g, "'\\''")}'`
521}
522
523/**
524 * AppleScript string literal escaping (backslash then double-quote).

Callers 1

buildShellCommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected