On chage working directory in panel Krusader sends cd to terminal emulator regardless of whether command line empty or not. So if you will leave there some unfinished command, ‘cd '/path/to/dir/'’ will be blindly appended to it and result will be executed. Reproducible: Always Steps to Reproduce: 1. Make sure that ‘Terminal Emulator sends Chdir on panel change’ option is enabled. 2. Open embedded terminal emulator. 3. Type ‘rm -rf ’. 4. Switch to panel, press ~ (shortcut for open home dir). 5. $ rm -rf cd '/home/username/' have been executed. Actual Results: Oops! Expected Results: At least Krusader should send ^U before sending cd '...' to terminal.
Git commit 2aaba3ea1881e30b65b4dce8a758da1a72c011f9 by Alexander Bikadorov. Committed on 27/01/2017 at 18:48. Pushed by abikadorov into branch 'master'. FIXED: [ 328068 ] Send SIGINT before own input command to embedded terminal To avoid unwanted behaviour by line concatenation. M +11 -2 krusader/GUI/terminaldock.cpp https://commits.kde.org/krusader/2aaba3ea1881e30b65b4dce8a758da1a72c011f9
"^C" (SIGINT) is send before command (not only chdir but also user action commands).
I filed bug 375830 on a regression that this caused.