Skip to content

Commit

Permalink
Fix cannot install on macOS with certain zsh config (#543)
Browse files Browse the repository at this point in the history
zsh parses hyphen inside double-quoted arguments as command argument, not string.
Just use a different prefix.
  • Loading branch information
webfiltered authored Dec 20, 2024
1 parent a179d5c commit 2edcc19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtualEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2edcc19

Please sign in to comment.