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