a simple "man" on the shell wud cause the shell to fork a new process...cal exec to load "man's" code into the addr. space to start execution and "wait" (not sure of this!) for this child (i.e man here) to finish....right? does the shell handle calling "exec" from the prompt differently?!? On Fri, 2005-01-07 at 18:34, Momchil Velikov wrote: > Tobias Klauser wrote: > > On 01/07/2005 10:15 AM, Mandeep Sandhu wrote: > > > >>$ exec man > >> > >>The shell closed! > >> > >>$ exec man & > >>[1] 10618 > >>$ What manual page do you want? > >> > >>[1]+ Exit 1 exec man > >>$ > >> > >>The man page of exec says.... > >>"If command is specified, it replaces the shell." > > > > > > Yes, that's exactly what "exec man" did, replace the shell with man. man can't > > live without a shell, thus it exited. > > Eh? ``man'' just did what it was requested to do, i.e. nothing, and *then* > exited. It's in a no way related to shell. > > -- > 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/