On Sun, 2005-01-09 at 07:47, Jim Bauer wrote: > On Saturday 08 January 2005 16:10, Jaydeep Chokshi wrote: > > > > Now My confusion is as follows, > > > > $exit > > > > doin this shell exits right, How come shell shold exit > > because 1st shell forked and had child process to > > execute the 'exit' call and thats why exit terminates > > but how this affect the shell to terminate, I mean it > > is child process who executed the 'exit' call so why > > then shell exits. > > There is no fork() call. exit is a shell builtin. Running it, causes > the shell to terminate. is exec also a shell built-in? > > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/