[Top][All Lists]

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

Re: ‘command … &’ creates subshell

From: Andreas Schwab
Subject: Re: ‘command … &’ creates subshell
Date: Wed, 01 Jul 2020 20:00:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux)

On Jul 02 2020, Robert Elz wrote:

> POSIX says:
>       If command is specified, exec shall not return to the shell;

But it also says:

    If command is not found, the exit status shall be 127. If command is
    found, but it is not an executable utility, the exit status shall be

And that's what bash does.


Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

reply via email to

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