From 9ef0b75e8851be0ca5fae4d7a535c3d19ce4f242 Mon Sep 17 00:00:00 2001 From: Frank Osterfeld Date: Tue, 1 Oct 2013 14:57:20 +0200 Subject: 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 Reviewed-by: Christian Kandeler --- src/plugins/remotelinux/linuxdeviceprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(" && ")); -- cgit v1.2.1