Skip to main content
12 events
when toggle format what by license comment
Sep 24, 2021 at 12:30 history edited Gilles 'SO- stop being evil' CC BY-SA 4.0
added 120 characters in body
Mar 14, 2018 at 20:55 history edited G-Man Says 'Reinstate Monica' CC BY-SA 3.0
Fixed typos (one dubious, one definite); tweaked punctuation; added links to man pages.
Feb 12, 2016 at 12:37 history edited Gilles 'SO- stop being evil' CC BY-SA 3.0
note that forking is not an obligation, just the traditional and usual way, as noted by schily
Feb 12, 2016 at 12:36 comment added Gilles 'SO- stop being evil' @cuonglm “Child shell” is not a technical term with a specific meaning, unlike “subshell”. If it's a shell that's a child, then it's a child shell, following the usual rules of English.
Feb 12, 2016 at 8:01 comment added Tim @Gilles: Could you help with my question unix.stackexchange.com/questions/261595/… ? Thanks.
Feb 12, 2016 at 5:25 comment added cuonglm @Gilles: So subshell is a child shell but not vice versa right?
Feb 12, 2016 at 1:55 vote accept CommunityBot moved from User.Id=79743 by developer User.Id=21281
Feb 12, 2016 at 1:42 comment added Tim (3) in bash -c <command>, after fork the shell and then execve bash -c <command> , a bash shell is created. Then are the system call used to run <command> again fork the bash shell and execve <command>?
Feb 12, 2016 at 1:32 comment added Tim (1) " launching an external command (sh or any other) calls the fork system call and then the execve system call to replace the shell program in the subprocess by another program (here sh)." Is it right that fork first creates a subshell and then execve replace the subshell with the external program? So in the two cases in your reply, a subshell is always created? (2) "A subshell that duplicates the existing shell." what does "that" mean?
Feb 12, 2016 at 0:53 comment added Gilles 'SO- stop being evil' @Tim Same thing as sh -c: that's a subprocess that coincidentally happens to be a shell.
Feb 12, 2016 at 0:44 comment added Tim Thanks. What does running a bash script with bash shebang belong to?
Feb 12, 2016 at 0:28 history answered Gilles 'SO- stop being evil' CC BY-SA 3.0