^C in Dolphin Terminal Panel

Kevin Kofler kevin.kofler at chello.at
Sat May 22 15:28:38 UTC 2010


Anne Wilson wrote:

> On Friday 21 May 2010 10:40:50 Kevin Kofler wrote:
>> It's not a bug. It's an important bugfix! If you have "rm -rf " typed in
>> your terminal and Dolphin enters "cd something" and ENTER, boom! This has
>> already lead to real-world data loss for some people! There's an upstream
>> bug filed for this, and I guess they finally fixed that now. Typing "cd
>> somedir" into a random command's prompt is also going to do no good,
>> Ctrl+C also protects against that.
>> 
> How?  Can you explain more?

Dolphin just sends keypresses to the process running inside the KonsolePart. 
So if you have "rm -rf " typed, typing "cd somedir" and Enter/Return will 
result in:
rm -rf cd somedir
which will delete somedir (and complain about no file or directory named cd 
existing)!

Ctrl+C is an effective way to clear the command line, and also interrupt 
non-shell processes which may be waiting for input.

        Kevin Kofler



More information about the kde mailing list