[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: waiting for process substitutions
From: |
Dale R. Worley |
Subject: |
Re: waiting for process substitutions |
Date: |
Thu, 04 Jul 2024 21:31:06 -0400 |
Reading this discussion, I notice a subtlety. If you execute:
$ command-A >( command-1) <( command-2 )
$ command-B
when command-B executes, command-2 must have terminated already because
command-A wouldn't have seen the EOF from command-2 until command-2
terminated. (OK, I am assuming here that command-A did read its second
argument until EOF, and that's not guaranteed.) But there's no
guarantee that command-1 has terminated; all that command-B can depend
on is that EOF was *sent* to command-1.
However, the documentation talks of $! possibly being the PID of
command-1 etc., but my (old) manual page doesn't describe how $! could
be set to be the PID of command-1, or even how a script could determine
the PID of command-1 in order to set $! to that number. (Although it
does describe that if $! is the PID of command-1, then "wait without id"
will wait for $!.)
Dale
- Re: waiting for process substitutions, (continued)
- Re: waiting for process substitutions, Zachary Santer, 2024/07/03
- Re: waiting for process substitutions, Chet Ramey, 2024/07/05
- Re: waiting for process substitutions, Greg Wooledge, 2024/07/05
- Re: waiting for process substitutions, Dale R. Worley, 2024/07/08
- Re: waiting for process substitutions, Chet Ramey, 2024/07/08
- Re: waiting for process substitutions, alex xmb sw ratchev, 2024/07/08
- Re: waiting for process substitutions, Chet Ramey, 2024/07/08
- Re: waiting for process substitutions, alex xmb sw ratchev, 2024/07/08
- Re: waiting for process substitutions, Greg Wooledge, 2024/07/08
- Re: waiting for process substitutions, alex xmb sw ratchev, 2024/07/08
Re: waiting for process substitutions,
Dale R. Worley <=
Re: waiting for process substitutions, Chet Ramey, 2024/07/05
- Re: waiting for process substitutions, Zachary Santer, 2024/07/09
- Re: waiting for process substitutions, Zachary Santer, 2024/07/09
- Re: waiting for process substitutions, Zachary Santer, 2024/07/14
- Re: waiting for process substitutions, Chet Ramey, 2024/07/18
- 'wait -n' with and without id arguments, Zachary Santer, 2024/07/20
- Re: 'wait -n' with and without id arguments, Chet Ramey, 2024/07/26
- Re: 'wait -n' with and without id arguments, Zachary Santer, 2024/07/31
- Re: 'wait -n' with and without id arguments, Zachary Santer, 2024/07/31
Re: waiting for process substitutions, Chet Ramey, 2024/07/18