Re: 'wait' in command group in pipeline fails to recognize child process

2021-06-23 Thread Greg Wooledge
On Wed, Jun 23, 2021 at 03:17:48PM -0700, Martin Jambon wrote: > > What is the magic quality that imparts shellness? > > '$$' matching the process ID. That just signifies that you're in the original shell, or the main shell, or the root shell, or the fundamental shell, or make up whatever term yo

Re: 'wait' in command group in pipeline fails to recognize child process

2021-06-23 Thread Martin Jambon
On 6/23/21 6:24 AM, Chet Ramey wrote: On 6/22/21 9:54 PM, Martin Jambon wrote: In the posix definition, a subshell - is not necessarily implemented as a separate process - belongs to a unique shell - is not a shell Why is it not "a shell?" Because '$$' doesn't match its process ID. What i

Re: 'wait' in command group in pipeline fails to recognize child process

2021-06-23 Thread Chet Ramey
On 6/22/21 9:54 PM, Martin Jambon wrote: In the posix definition, a subshell - is not necessarily implemented as a separate process - belongs to a unique shell - is not a shell Why is it not "a shell?" What is the magic quality that imparts shellness? -- ``The lyf so short, the craft so long

Re: 'wait' in command group in pipeline fails to recognize child process

2021-06-23 Thread Chet Ramey
On 6/22/21 8:00 PM, Lawrence Velázquez wrote: On Tue, Jun 22, 2021, at 6:32 PM, Martin Jambon wrote: I would also mention pipelines here, since these are more commonly used than () subshells. I don't know if there are other ways of creating subshells. If that's all, I think it would be valuabl