I have somehow thought that all shells that are invoked by a terminal emulator or any other way while a user is logged in are subshells of the log-in shell. Is this correct?
If it matters, I am thinking of bash, Ubuntu, and gnome terminal.
I have somehow thought that all shells that are invoked by a terminal emulator or any other way while a user is logged in are subshells of the log-in shell. Is this correct?
If it matters, I am thinking of bash, Ubuntu, and gnome terminal.
COMMAND EXECUTION ENVIRONMENT
inman bash
for instance. Also, you are only talking about shells launched in the GUI in a terminal emulator, right? – terdon Dec 24 '20 at 11:17COMMAND EXECUTION ENVIRONMENT
inman bash
and also Is a sub-shell the same thing as a child-shell. – terdon Dec 24 '20 at 11:28$sh -c <my_program>
? I think I understand that that section in man page explains that a subshell is launched when a command is executed from a shell. – norio Dec 24 '20 at 11:42gdm
,lightdm
etc.), there isn’t a single parent shell for your session. – Stephen Kitt Dec 24 '20 at 12:08~/.profile
or~/.bash_profile
to be read in to the environment? How are$HOME
and$PATH
set for me as a user? – norio Dec 24 '20 at 12:24