Matthew Woehlke wrote:
Doesn't 'exec' replace the process? I get the others (I think), but I don't understand what shell is left to "stop execution" after an exec.
`exec' can fail for various reasons: usually because the file to be executed is not present or not executable. In its default mode, an interactive bash will not exit, while a non-interactive shell will. The `execfail' shell option can be used to control the behavior in a non-interactive shell. Posix just says the shell exits if exec fails. Previous versions once made a distinction between interactive and non- interactive shells, which newer versions have dropped. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Live Strong. No day but today. Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://cnswww.cns.cwru.edu/~chet/