diff --git a/src/plugins/remotelinux/linuxdeviceprocess.cpp b/src/plugins/remotelinux/linuxdeviceprocess.cpp
index 2dd8e792a7a439fd94cd3c9367ab37cbc4a6d202..029aa6e3bbeaa9b84a4cb17731589b97459a838f 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(" && "));