GNOME Bugzilla – Bug 550826
gnome-terminal -e : only one command is allowed
Last modified: 2008-10-09 14:55:42 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:
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...
It would also be nice if you could keep that window open after the command completes (Bug #554248).
It appears that xterm does pass the command to sh -c instead of executing it directly. Maybe we should do so too...
Sounds right to me.
*** This bug has been marked as a duplicate of 163148 ***