[Bug 948321] [NEW] -e (execute) option mishanldes spaces
Colomban Wendling
lists.ban at herbesfolles.org
Tue Mar 6 19:28:11 UTC 2012
Public bug reported:
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
** Affects: konsole (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
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".
-
+ 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
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to konsole in Ubuntu.
https://bugs.launchpad.net/bugs/948321
Title:
-e (execute) option mishanldes spaces
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/konsole/+bug/948321/+subscriptions
More information about the kubuntu-bugs
mailing list