Answer the question
In order to leave comments, you need to log in
Why doesn't a bash script execute a command in a new tab?
Wrote a simple bash script
#!/bin/bash
gnome-terminal --tab --title="newtab" -- "bash -c \"ls\""
gnome-terminal --tab --title="newtab"
, then the tab opens normally. Answer the question
In order to leave comments, you need to log in
gnome-terminal --tab --title="newtab" -- $SHELL -c 'ls && $SHELL'
gnome-terminal --tab --title="newtab" -- $SHELL -c 'ls && sleep 5'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question