Re: Unreachable code in evalsubshell()?
Harald van Dijk <[email protected]> Tue, 27 Jan 2026 07:49:20 +0000
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
On 27/01/2026 04:26, Denys Vlasenko wrote:
> switch (n->type) {
> ...
> case NBACKGND:
> evalfn = evalsubshell; //THIS IS THE ONLY USE OF evalsubshell
> goto checkexit;
> ...
The last line of that first ... is rather relevant though:
case NSUBSHELL:
case NBACKGND:
evalfn = evalsubshell;
goto checkexit;
evalsubshell may be called for NSUBSHELL and for NBACKGND.
Cheers,
Harald van Dijk