GNOME Bugzilla – Bug 163148
pass -x/-e command to shell instead of making the replace starting the shell
Last modified: 2020-05-02 19:06:51 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
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"?
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.
*** Bug 305704 has been marked as a duplicate of this bug. ***
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.
*** Bug 550826 has been marked as a duplicate of this bug. ***
*** Bug 604826 has been marked as a duplicate of this bug. ***