From: Frank Reininghaus Date: Sun, 3 Jun 2012 20:50:05 +0000 (+0200) Subject: Prepend "cd" and "clear" commands with a space in the Terminal Panel X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/16b3b82900f1c9c21587f21aa9b63b878add20d7 Prepend "cd" and "clear" commands with a space in the Terminal Panel This prevents that these commands, which have not been enetered by the user, but generated automatically, appear in the shell history, provided that the shell is configured appropriately. BUG: 204039 FIXED-IN: 4.9.0 --- diff --git a/src/panels/terminal/terminalpanel.cpp b/src/panels/terminal/terminalpanel.cpp index c307ce71b..dba67f1b4 100644 --- a/src/panels/terminal/terminalpanel.cpp +++ b/src/panels/terminal/terminalpanel.cpp @@ -158,10 +158,10 @@ void TerminalPanel::sendCdToTerminal(const QString& dir) } } - m_terminal->sendInput("cd " + KShell::quoteArg(dir) + '\n'); + m_terminal->sendInput(" cd " + KShell::quoteArg(dir) + '\n'); if (m_clearTerminal) { - m_terminal->sendInput("clear\n"); + m_terminal->sendInput(" clear\n"); m_clearTerminal = false; } }