[konsole] [Bug 377412] konsole with -e option doesn't keep the window open anymore

Wolfgang Bauer bugzilla_noreply at kde.org
Sat Apr 22 08:08:33 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=377412

Wolfgang Bauer <wbauer at tmo.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wbauer at tmo.at

--- Comment #2 from Wolfgang Bauer <wbauer at tmo.at> ---
(In reply to Michael from comment #0)
> When running Konsole with this command:
> 
> $ konsole -e echo "foo" && sleep 3 && echo "bar" && sleep 3 && echo "closing"
> 
> ... Konsole used to 1) create a new Konsole window, 2) execute the command
> string after -e, and 3) send the output to the new Konsole window.

I just tried that with konsole 4.14.3, and it doesn't do that either.

And actually I don't see how it could, and how this is a problem in konsole...
I think it's the shell that interprets '&&' *before* the command is called.
So in the end you actually run this:
$ konsole -e echo "foo"
$ sleep 3
$ echo "bar"
$ sleep 3
$ echo "closing"
And that's the behavior I see when trying that here, i.e. "bar" and "closing"
are printed in the original konsole window (if run in konsole).

And the first command does open a new konsole window but it closes immediately
again (so you might not see it at all), because the "--noclose" is missing.

Btw, the behavior is exactly the same if you use xterm instead of konsole in
the mentioned command.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list