diff --git a/src/plugins/terminal/shellintegration.cpp b/src/plugins/terminal/shellintegration.cpp index fc97d76cff2..5dfd450e68c 100644 --- a/src/plugins/terminal/shellintegration.cpp +++ b/src/plugins/terminal/shellintegration.cpp @@ -199,7 +199,7 @@ void ShellIntegration::prepareProcess(Utils::Process &process) m_tempDir.filePath(filesToCopy.pwsh.script.fileName())); rcPath.copyFile(tmpRc); - cmd.addArgs(QString("-noexit -command try { . \"%1\" } catch {Write-Host \"Shell " + cmd.addArgs(QString("-noexit -command try { . '%1' } catch {Write-Host \"Shell " "integration error:\" $_}") .arg(tmpRc.nativePath()), CommandLine::Raw);