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 163148 - pass -x/-e command to shell instead of making the replace starting the shell
pass -x/-e command to shell instead of making the replace starting the shell
Status: RESOLVED WONTFIX
Product: gnome-terminal
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
: 305704 550826 604826 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-01-06 17:27 UTC by info
Modified: 2020-05-02 19:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description info 2005-01-06 17:27:30 UTC
Hi,

I think the vte does not correctly initialise the shell for executing commands.
Terminal (a terminal emulator for XFce4, using libvte), and gnome-terminal are
having the same problems; e.g.:

$ Terminal -e 'dpkg --info xyz.deb|less'

Will not show the output from dpkg in less in a newly opened Terminal. Instead I
have to say:

$ Terminal -e "sh -c 'dpkg --info xyz.deb|less'"

With xterm, the first line works.


Greetings,

Christian
Comment 1 Kjartan Maraas 2005-02-15 11:04:43 UTC
Hmm, when I do gnome-terminal -e 'rpm -q --changelog <package> | less' the
output just flies past and the window closes again. If I use sh -c like the
above it works. Is this what you mean by "does not show the output in a newly
opened terminal"?
Comment 2 info 2005-02-15 11:20:53 UTC
Yes. If I use (e.g.) xterm, the ouput stops, and IMHO I think that is the
expected behaviour, when I pipe some text through less.
Comment 3 Michele Baldessari 2005-07-29 19:46:36 UTC
*** Bug 305704 has been marked as a duplicate of this bug. ***
Comment 4 Behdad Esfahbod 2006-04-28 02:26:07 UTC
Apparently xterm passes -e argument to the shell instead of replacing it.  g-t can do that too.  No need to support it in vte I guess, not sure.
Comment 5 Christian Persch 2008-10-09 14:55:42 UTC
*** Bug 550826 has been marked as a duplicate of this bug. ***
Comment 6 Christian Persch 2009-12-17 13:33:14 UTC
*** Bug 604826 has been marked as a duplicate of this bug. ***