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 ENVIRONMENTinman bashfor 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 ENVIRONMENTinman bashand 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,lightdmetc.), there isn’t a single parent shell for your session. – Stephen Kitt Dec 24 '20 at 12:08~/.profileor~/.bash_profileto be read in to the environment? How are$HOMEand$PATHset for me as a user? – norio Dec 24 '20 at 12:24