https://bugs.kde.org/show_bug.cgi?id=453935

            Bug ID: 453935
           Summary: Inbuilt konsole always write to bash history
           Product: kile
           Version: 2.9.93
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: wishlist
          Priority: NOR
         Component: user interface
          Assignee: michel.lud...@kdemail.net
          Reporter: paul.pering...@zaclys.net
  Target Milestone: ---

SUMMARY
When opening a tex file the inbuilt konsole send a cd and clear command which
appear in bash_history.

STEPS TO REPRODUCE
1. Open tex file in kile.
2. Close it.
3. Open bash_history

OBSERVED RESULT
Two new entries in bash_history.

EXPECTED RESULT
No new entry.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: latest archlinux
(available in About System)
KDE Plasma Version: latest
KDE Frameworks Version: latest
Qt Version: latest

ADDITIONAL INFORMATION
It can be solve by adding in src/widgets/konsolewidget.cpp lines 134 and 135 a
space at the beginning of the line, as does dolphin to prevent writing to
bash_history if the option "ignorespace" is set in bashrc. These lines would
then be

        m_term->sendInput(" cd " + KShell::quoteArg(directory) + '\n');
        m_term->sendInput(" clear\n");

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to