Hi, * Robert Ian Smit [02-06-27 10:54:28 +0200] wrote: > On Thu, Jun 27, 2002 at 12:13:04AM +0200, Michael Mauch wrote:
> > This cannot work. The redirection (">") is a shell feature, but > > --command does not start a shell, it only spawns the executable given. > > Try: > > gnome-terminal --command='sh -c "echo foo >foo.txt"' > > or > > gnome-terminal --command='sh -c "locale >locale.txt"' > Okay, my assumption that --command would execute within in a shell > was wrong then. Yes. gnome-terminal is a terminal emulator which is a kind of shell itself. It runs until the master process within exits. This process usually is your shell (if exit from your shell then gnome-terminal will exit, too). By the switch you can make gnome-terminal use another command instead of your shell. > I suppose that is a feature, not a bug? Yes. Cheers, Rocco