Red Hat Bugzilla – Bug 91536
gnome-terminal does not handle -e parameter correctly
Last modified: 2007-04-18 12:53:58 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
Description of problem:
xterm -e view /etc/rc
will open a new window running vi on the given file
gnome-terminal -e view /etc/rc
Invalid argument: "/etc/rc"
xterm is consistent with man xterm, while gnome-terminal is not
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. gnome-terminal -e view /etc/rc
Actual Results: Invalid argument: "/etc/rc"
Expected Results: new terminal session
Likewise -T is not compatible
works: xterm -T "vi" -e vi
fails: gnome-terminal -T "vi" -e vi
xterm command line arg compatibility isn't a goal; gnome-terminal is compatible
with itself (more or less) going back a few years, and it would be bad to break
From gnome-terminal --help:
-e, --command=STRING Execute the argument to this
option inside the terminal.
-x, --execute Execute the remainder of the
command line inside the
The options behave as specified there, -x does what you are expecting.
gnome-terminal doesn't have a -T option, it has -t and --title instead.