forked from qt-creator/qt-creator
SSH: Fix running remote process in terminal
ConsoleProcess stumbles over the special characters in the remote command and as a result silently runs the command locally instead. Prevent that. We can (and should) simply leave these characters alone, as they have no special meaning on the local machine. Change-Id: I31b3afe1cf170e51d431372b15f4df3656006959 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -595,12 +595,12 @@ static QString quoteArgWin(const QString &arg)
|
||||
}
|
||||
|
||||
QtcProcess::Arguments QtcProcess::prepareArgs(const QString &cmd, SplitError *err, OsType osType,
|
||||
const Environment *env, const QString *pwd)
|
||||
const Environment *env, const QString *pwd, bool abortOnMeta)
|
||||
{
|
||||
if (osType == OsTypeWindows)
|
||||
return prepareArgsWin(cmd, err, env, pwd);
|
||||
else
|
||||
return Arguments::createUnixArgs(splitArgs(cmd, osType, true, err, env, pwd));
|
||||
return Arguments::createUnixArgs(splitArgs(cmd, osType, abortOnMeta, err, env, pwd));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user