Not all Linuxes have bash, but practically all of them have sh. From what I can see, there are no features from bash that are not in sh being used. Would it be possible to change the attachToProcess.js from
const command = `bash -c 'uname && if [ $(uname) == "Linux" ] ; then ${nativeAttach_1.PsProcessParser.psLinuxCommand} ; elif [ $(uname) == "Darwin" ] ; ` +
`then ${nativeAttach_1.PsProcessParser.psDarwinCommand}; fi'`;
to
const command = `sh -c 'uname && if [ $(uname) == "Linux" ] ; then ${nativeAttach_1.PsProcessParser.psLinuxCommand} ; elif [ $(uname) == "Darwin" ] ; ` +
`then ${nativeAttach_1.PsProcessParser.psDarwinCommand}; fi'`;
This comes up more often when using the pipeTransport to debug on other operating systems.
Not all Linuxes have
bash, but practically all of them havesh. From what I can see, there are no features frombashthat are not inshbeing used. Would it be possible to change theattachToProcess.jsfromto
This comes up more often when using the
pipeTransportto debug on other operating systems.