This can be solved by quoting commands:
Code:
gnome-terminal --tab-with-profile=chrissypink --command alpine --tab-with-profile=jake_hugerichard -x ssh xxxx@xxxx.ut.ee
can be re-written as
Code:
gnome-terminal --tab-with-profile=jake_hugerichard --command "ssh xxxx@xxxx.ut.ee" --tab-with-profile=chrissypink --command alpine
The problem is that the shell parses the command line into individual words before it executes the program. Let's say that you left off the quotes:
Code:
gnome-terminal --tab-with-profile=jake_hugerichard --command ssh xxxx@xxxx.ut.ee --tab-with-profile=chrissypink --command alpine
Here's how the shell would tokenize that line (i.e. break that line apart):
Code:
gnome-terminal
--tab-with-profile=jake_hugerichard
--command
ssh
xxxx@xxxx.ut.ee
--tab-with-profile=chrissypink
--command
alpine
'--command' works on the next token... in this case 'ssh'
If you quote it, you get this:
Code:
gnome-terminal
--tab-with-profile=jake_hugerichard
--command
"ssh xxxx@xxxx.ut.ee"
--tab-with-profile=chrissypink
--command
alpine
Because the shell sees "ssh
xxxx@xxxx.ut.ee"as a single token.
--command then picks up "ssh
xxxx@xxxx.ut.ee"as a single token, and is able to process it correctly.