From 2edcc199974aa7609e500695fe5d1bd283a4751e Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sat, 21 Dec 2024 03:41:58 +1100 Subject: [PATCH] Fix cannot install on macOS with certain zsh config (#543) zsh parses hyphen inside double-quoted arguments as command argument, not string. Just use a different prefix. --- src/virtualEnvironment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtualEnvironment.ts b/src/virtualEnvironment.ts index fe1b8de2..4792b70c 100644 --- a/src/virtualEnvironment.ts +++ b/src/virtualEnvironment.ts @@ -240,7 +240,7 @@ export class VirtualEnvironment { private async runPtyCommandAsync(command: string, onData?: (data: string) => void): Promise<{ exitCode: number }> { const id = Date.now(); return new Promise((res) => { - const endMarker = `--end-${id}:`; + const endMarker = `_-end-${id}:`; const input = `clear; ${command}; echo "${endMarker}$?"`; const dataReader = this.uvPtyInstance.onData((data) => { const lines = data.split('\n');