From 16b3b82900f1c9c21587f21aa9b63b878add20d7 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Sun, 3 Jun 2012 22:50:05 +0200 Subject: 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 --- src/panels/terminal/terminalpanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } } -- cgit v1.3