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 550826 - gnome-terminal -e : only one command is allowed
gnome-terminal -e : only one command is allowed
Status: RESOLVED DUPLICATE of bug 163148
Product: gnome-terminal
Classification: Core
Component: general
2.22.x
Other All
: Normal minor
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-09-04 11:57 UTC by rom
Modified: 2008-10-09 14:55 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description rom 2008-09-04 11:57:52 UTC
Please describe the problem:
Hi,

I would like to open a new gnome-terminal and execute 2 commands :
gnome-terminal -e 'command1 ; command2'

for example : gnome-terminal -e 'date ; sleep 3'
Only the first command is executed.

It works with xterm :
xterm -e 'date ; sleep 3'

Is it a bug in gnome-terminal, or a missing feature?

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Christian Persch 2008-09-04 12:41:46 UTC
As a workaround, you can use -e 'sh -c "......"' .

-e is broken however; -x is the replacement (bug 152717). However this doesn't work with -x either...
Comment 2 Gantry York 2008-09-29 04:02:59 UTC
It would also be nice if you could keep that window open after the command completes (Bug #554248).
Comment 3 Christian Persch 2008-10-07 14:40:53 UTC
It appears that xterm does pass the command to sh -c instead of executing it directly. Maybe we should do so too...
Comment 4 Behdad Esfahbod 2008-10-07 21:29:26 UTC
Sounds right to me.
Comment 5 Christian Persch 2008-10-09 14:55:42 UTC

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