[Bug 1018087] New: KDE konsole interprets options after -e cmd
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087 Bug ID: 1018087 Summary: KDE konsole interprets options after -e cmd Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: x86-64 OS: openSUSE 42.2 Status: NEW Severity: Normal Priority: P5 - None Component: KDE Applications Assignee: opensuse-kde-bugs@opensuse.org Reporter: killtech@gmx.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The konsole applications tries to interprete all options after the -e options. Try:
konsole -e sh -c date Unknown option 'c'.
According to the man page, all arguments passed after -e cmd should be used from cmd only. Tried with official konsole-16.08.2-3.1 and even the never version from KDE:Applications (konsole-16.12.0-1.1) fails, too. My old system with openSuse 13.1 had a working konsole, so I can't tell which version introduced this bug... With this behaviour, it is impossible to use konsole as program launcher in QT creator if the program needs any arguments... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087#c1
--- Comment #1 from Heiko Brümmer
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087#c2
Wolfgang Bauer
See also https://bugs.kde.org/show_bug.cgi?id=366793 for possible patch.
Yes, I am aware of that bug report, as I was the one who filed it... ;) I even wrote a quite similar patch myself and then pointed out a flaw in the review request when somebody else was faster to propose it. But as the patch is still in review and none of the konsole developers have even responded so far, I'm not sure we should already add it to our packages at this point. (In reply to Heiko Brümmer from comment #0)
My old system with openSuse 13.1 had a working konsole, so I can't tell which version introduced this bug...
It got introduced in 16.08.0, when Konsole was ported away from kdelibs4support. It uses Qt's QCommandLineParser now, which just does not support "rest of the line" arguments at all. A workaround would be to use xterm, or put everything after -e in quotes (if possible, no idea if you could do that in Qt Creator). I.e. this would work: konsole -e "sh -c date" -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087#c3
--- Comment #3 from Heiko Brümmer
A workaround would be to use xterm, or put everything after -e in quotes (if possible, no idea if you could do that in Qt Creator). I.e. this would work: konsole -e "sh -c date"
As a workaround, using xterm -e is okay for me. I do not have control how Qt Creator adds the additional arguments (the program and its arguments). Good to hear that this bug is already on focus. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087#c5
Wolfgang Bauer
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087
http://bugzilla.opensuse.org/show_bug.cgi?id=1018087#c9
Wolfgang Bauer
participants (1)
-
bugzilla_noreply@novell.com