Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16517

Re: ‘command … &’ creates subshell

From Andreas Schwab <schwab@linux-m68k.org>
Newsgroups gnu.bash.bug
Subject Re: ‘command … &’ creates subshell
Date 2020-07-01 20:00 +0200
Message-ID <mailman.784.1593626433.2574.bug-bash@gnu.org> (permalink)
References (4 earlier) <7dvoi92p.dag@gnui.org> <09ea84b2-4fb1-6b05-7c0b-fe6b2ab00c6f@archlinux.org> <2643.1593599092@jinx.noi.kre.to> <14637.1593625593@jinx.noi.kre.to> <871rlvcdzc.fsf@igel.home>

Show all headers | View raw


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
    126.

And that's what bash does.

Andreas.

-- 
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."

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: ‘command … &’ creates subshell Andreas Schwab <schwab@linux-m68k.org> - 2020-07-01 20:00 +0200

csiph-web