Skip to content

Commit 102ffc1

Browse files
authored
Fixing quoting around ssh's command (#2604)
This fixes #2585
1 parent 28981f3 commit 102ffc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/Debugger/attachToProcess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class RemoteAttachPicker {
123123
const command: string = `sh -c 'uname && if [ $(uname) = "Linux" ] ; then ${PsProcessParser.psLinuxCommand} ; elif [ $(uname) = "Darwin" ] ; ` +
124124
`then ${PsProcessParser.psDarwinCommand}; fi'`;
125125

126-
return execChildProcess(`${pipeCmd} "${command}"`, null, this._channel).then(output => {
126+
return execChildProcess(`${pipeCmd} '${command}'`, null, this._channel).then(output => {
127127
// OS will be on first line
128128
// Processess will follow if listed
129129
let lines: string[] = output.split(/\r?\n/);

0 commit comments

Comments
 (0)