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


Groups > gnu.bash.bug > #16517 > unrolled thread

Re: ‘command … &’ creates subshell

Started byAndreas Schwab <schwab@linux-m68k.org>
First post2020-07-01 20:00 +0200
Last post2020-07-01 20:00 +0200
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#16517 — Re: ‘command … &’ creates subshell

FromAndreas Schwab <schwab@linux-m68k.org>
Date2020-07-01 20:00 +0200
SubjectRe: ‘command … &’ creates subshell
Message-ID<mailman.784.1593626433.2574.bug-bash@gnu.org>
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."

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web