! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Terminal can't execute a sequence of commands with --execute option
Status:
CLOSED: INVALID
Product:
Xfce4-terminal
Component:
General

Comments

Description mchristias 2007-08-18 01:24:20 CEST
I am not sure if this is a bug report or a feature requst but I think Terminal should be able to execute a sequence of commands in a desktop configuration file or a shell script with the --execute option.
For example the following desktop configuration file is executed by xterm:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=lan
Comment=
Categories=Application;
Exec=xterm -e "echo a: ; ls a* ; python"
Icon=
Terminal=false
StartupNotify=false

But fails with Terminal:
Exec=Terminal --execute "echo a: ; ls a* ; python"
Terminal opens in this case, but nothing happens.
Comment 1 Benedikt Meurer editbugs 2007-08-18 13:44:24 CEST
Sure, because Terminal does launch the specified command directly. And "echo a: ; ls a* ; python" is not the name of a binary in your $PATH. What you want to do is to execute that stuff in the shell: Use "sh -c '...'".
Comment 2 mchristias 2007-08-19 04:37:26 CEST
Thanks.
Terminal --command "sh -c 'command1; command2'" does work.
Terminal -e "sh -c 'command1; command2'" works, too.
But:
Terminal --execute "sh -c 'command1; command2'" does not.
And, strange, the option -e is not mentioned in the documentation:
http://www.os-cillation.com/documentation/terminal/C/advanced.html#command-line-options
I am a little confused. Perhaps I should read some Linux manuals
in more depth... :-)

Bug #3474

Reported by:
mchristias
Reported on: 2007-08-18
Last modified on: 2009-12-17

People

Assignee:
Benedikt Meurer
CC List:
0 users

Version

Attachments

Additional information