diff options
author | Frank Osterfeld <frank.osterfeld.qnx@kdab.com> | 2013-10-01 14:57:20 +0200 |
---|---|---|
committer | Frank Osterfeld <frank.osterfeld@kdab.com> | 2013-10-10 13:40:16 +0200 |
commit | 9ef0b75e8851be0ca5fae4d7a535c3d19ce4f242 (patch) | |
tree | 6c2aa1112983f83b19c1c476e64ba2214c43b965 | |
parent | da6306533758ca922bb7e8dcc2c1131f6743f28c (diff) | |
download | qt-creator-9ef0b75e8851be0ca5fae4d7a535c3d19ce4f242.tar.gz |
Use POSIX-compliant "." instead of "source"
Using "source" to source a script isn't defined by POSIX sh, while "."
is. Using the more portable "." makes it work with QNX's sh.
Change-Id: I948fc562c62789184553d57b949697c2525771f3
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
-rw-r--r-- | src/plugins/remotelinux/linuxdeviceprocess.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/remotelinux/linuxdeviceprocess.cpp b/src/plugins/remotelinux/linuxdeviceprocess.cpp index 2dd8e792a7..029aa6e3bb 100644 --- a/src/plugins/remotelinux/linuxdeviceprocess.cpp +++ b/src/plugins/remotelinux/linuxdeviceprocess.cpp @@ -56,7 +56,7 @@ QString LinuxDeviceProcess::fullCommandLine() const { QString fullCommandLine; foreach (const QString &filePath, rcFilesToSource()) - fullCommandLine += QString::fromLatin1("test -f %1 && source %1;").arg(filePath); + fullCommandLine += QString::fromLatin1("test -f %1 && . %1;").arg(filePath); if (!m_workingDir.isEmpty()) { fullCommandLine.append(QLatin1String("cd ")).append(quote(m_workingDir)) .append(QLatin1String(" && ")); |