Activity log for bug #948321

Date Who What changed Old value New value Message
2012-03-06 19:28:11 Colomban Wendling bug added bug
2012-03-06 19:31:38 Colomban Wendling description The -e option of Konsole has a very strange behavior if one of the first argument has a space in it. Actually, everything after the space is simply ignored: $ konsole -e "/bin/sh somescript" executes "/bin/sh" $ konsole -e "/bin/some program with spaces" tries to execute "/bin/some" $ konsole -e "/bin/some\ program\ with\ spaces" tries to execute "/bin/some program with spaces" This behavior doesn't follow XTerm (and other) behavior and seems simply wrong. I would've expected either 1) execute as a shell-formed command, so splitting at spaces and passing extra arguments to the command, or 2) execute the argument, e.g. with the spaces This makes it hard to use konsole as a random terminal emulator from a script or application, e.g. when mapped to x-terminal-emulator. For example, #282972 made the Geany editor use "x-terminal-emulator" as its terminal emulator, but broke Geany under KDE because it tries to run "'x-terminal-emulator' '-e' '/bin/sh somescript'", and then Konsole simply runs "/bin/sh". Ubuntu version: 11.10 Konsole version: 4:4.7.1-0ubuntu2 The -e option of Konsole has a very strange behavior if one of the first argument has a space in it. Actually, everything after the space is simply ignored: $ konsole -e "/bin/sh somescript" executes "/bin/sh" $ konsole -e "/bin/some program with spaces" tries to execute "/bin/some" $ konsole -e "/bin/some\ program\ with\ spaces" tries to execute "/bin/some program with spaces" This behavior doesn't follow XTerm (and other) behavior and seems simply wrong. I would've expected either 1) execute as a shell-formed command, so splitting at spaces and passing extra arguments to the command, or 2) execute the argument, e.g. with the spaces This makes it hard to use konsole as a random terminal emulator from a script or application, e.g. when mapped to x-terminal-emulator. For example, LP:#282972 made the Geany editor use "x-terminal-emulator" as its terminal emulator, but broke Geany under KDE because it tries to run "'x-terminal-emulator' '-e' '/bin/sh somescript'", and then Konsole simply runs "/bin/sh". Ubuntu version: 11.10 Konsole version: 4:4.7.1-0ubuntu2
2012-03-08 21:19:19 Philip Muškovac konsole (Ubuntu): status New Invalid
2012-06-20 13:13:58 Chow Loong Jin konsole (Ubuntu): status Invalid New
2012-09-15 13:56:04 Launchpad Janitor konsole (Ubuntu): status New Confirmed
2012-10-17 14:32:25 Daniel Faust summary -e (execute) option mishanldes spaces -e (execute) option mishandles spaces
2012-10-17 14:32:52 Daniel Faust bug watch added https://bugs.kde.org/show_bug.cgi?id=308553