The code for the "-e" option is problematic. It is only prepared for the case like " konsole -e man ls" where users do not quote the whole command. For the case of "konsole -e 'man ls' ", Konsole just fails. This report is just for the record. I have prepared a patch and will push it when I'm more confident that it really works and causes no regressions.
Git commit aa75fc8fee7e55e0c78640fcbed0bf0627ba7971 by Jekyll Wu. Committed on 10/03/2012 at 05:12. Pushed by jekyllwu into branch 'master'. konsole -e 'man ls' should work as expected FIXED-IN: 4.9.0 M +18 -4 src/Application.cpp M +4 -1 src/ShellCommand.h http://commits.kde.org/konsole/aa75fc8fee7e55e0c78640fcbed0bf0627ba7971
Git commit 4d194b20c055a68fb72f2f41b5a67c7afa6d51f7 by Jekyll Wu. Committed on 01/11/2012 at 06:28. Pushed by jekyllwu into branch 'master'. Revert the support for konsole -e "command arguemnts" Although that looks like a nice feature, it makes the code more complicated and causes problems when that command is an absolute path containing spaces. So for now the only supported way is: konsole -e command arguments This reverts commit aa75fc8fee7e55e0c78640fcbed0bf0627ba7971 M +6 -14 src/Application.cpp http://commits.kde.org/konsole/4d194b20c055a68fb72f2f41b5a67c7afa6d51f7
Git commit 48b5575c174fb4edb6d3388d7a22dec148dea8cb by Jekyll Wu. Committed on 01/11/2012 at 06:28. Pushed by jekyllwu into branch 'KDE/4.9'. Revert the support for konsole -e "command arguemnts" Although that looks like a nice feature, it makes the code more complicated and causes problems when that command is an absolute path containing spaces. So for now the only supported way is: konsole -e command arguments This reverts commit aa75fc8fee7e55e0c78640fcbed0bf0627ba7971 (cherry picked from commit 4d194b20c055a68fb72f2f41b5a67c7afa6d51f7) M +6 -14 src/Application.cpp http://commits.kde.org/konsole/48b5575c174fb4edb6d3388d7a22dec148dea8cb
Not sure this is really worthwhile. Close it for now.
Git commit bd56dba1a9e52180a88e8fbd0c6adaf216a852d5 by Kurt Hindenburg. Committed on 13/09/2014 at 14:49. Pushed by hindenburg into branch 'KDE/4.14'. Allow the -e command line to work w/ arguments w and w/o spaces This allows both these lines to work: konsole -e man ls konsole -e "man ls" Thanks to Mark Raymond markr raymonds org uk for patch/testing. REVIEW: 120001 FIXED-IN: 4.14.2 M +13 -6 src/Application.cpp http://commits.kde.org/konsole/bd56dba1a9e52180a88e8fbd0c6adaf216a852d5
Git commit d8be35b5c7b93a324ed88f257785c2251f7cc964 by Kurt Hindenburg. Committed on 13/09/2014 at 14:49. Pushed by hindenburg into branch 'master'. Allow the -e command line to work w/ arguments w and w/o spaces This allows both these lines to work: konsole -e man ls konsole -e "man ls" Thanks to Mark Raymond markr raymonds org uk for patch/testing. REVIEW: 120001 FIXED-IN: 4.14.2 (cherry picked from commit bd56dba1a9e52180a88e8fbd0c6adaf216a852d5) M +13 -6 src/Application.cpp http://commits.kde.org/konsole/d8be35b5c7b93a324ed88f257785c2251f7cc964