Version: 2.1 (using Devel) Installed from: Compiled sources Compiler: gcc 4.1.2 OS: Linux In the "Edit profile..."-dialog, when I try to set a command with quotes or double quotes in them, the quotes are not saved (but it still works in the current konsole). So, when I set set command: su -c "screen -R" ,I can start that session in the current konsole, but when I go back to the profile-editing-dialog, the quotes are gone, and the session won't work after restarting konsole.
Finally found the report :) I don't know how the process here goes, but I can confirm this, as I use su -c "screen -R -S Admin" often. The version is whatever comes with kde-4.0.0, but from comparing my source to HEAD it looks the same, quotes are stripped out for some reason (in ShellCommand.cpp).
> quotes are stripped out for some reason The arguments are stored as separate strings internally, so the quotes are not necessary. Plus arguments need to be unquoted when passing them as the command-line to the new process.
Yay, just wanted to report exactly this bug. I have a profile to open a screen session on a remote host. The command I execute is something like this: "autossh -t foo 'screen -raAd'". Without the ' the call is quite useless. I edited the .profile file by hand and everything works fine now.
*** Bug 163839 has been marked as a duplicate of this bug. ***
SVN commit 837723 by knight: Quote arguments containing spaces when expanding the list of arguments in a ShellCommand. BUG: 156826 BACKPORT: 4.1 M +12 -1 ShellCommand.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=837723