bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A few man page fixes from RHEL-5


From: Chet Ramey
Subject: Re: A few man page fixes from RHEL-5
Date: Mon, 04 Feb 2008 15:21:40 -0500
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

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    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]