After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 778931 - Command-line arg to make gnome-terminal stay open when launched with -e and process completes
Command-line arg to make gnome-terminal stay open when launched with -e and p...
Status: RESOLVED DUPLICATE of bug 491807
Product: gnome-terminal
Classification: Core
Component: general
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-20 00:09 UTC by Nate Graham
Modified: 2017-02-20 16:24 UTC
See Also:
GNOME target: ---
GNOME version: 3.21/3.22



Description Nate Graham 2017-02-20 00:09:06 UTC
When you open gnome-terminal with -e <some command>, it executes the command and then immediately closes, which causes the following issues:

1. You might have wanted to examine the output before it closed.
2. You might have wanted to use that same terminal window to do stuff (for example, re-run the same command).

There are various workarounds that can resolve #1 (e.g. append ";bash" or "|| read" to the command) but none of them will resolve #2.

It would be nice if you could pass an additional arg to gnome-terminal to make it stay open after the command you asked it to run has completed.

Is this a duplicate of https://bugzilla.gnome.org/show_bug.cgi?id=491807?
Comment 1 Christian Persch 2017-02-20 16:24:21 UTC
Yes.

*** This bug has been marked as a duplicate of bug 491807 ***