help-bash
[Top][All Lists]
Advanced

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

Re: reading from external command


From: Alex fxmbsw7 Ratchev
Subject: Re: reading from external command
Date: Thu, 31 Mar 2022 10:44:18 +0200

On Thu, Mar 31, 2022 at 10:43 AM Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>
wrote:

> no idea why there are in my version two 44 exit pids
> maybe chet can clear up in time
>

oh it is per line spawned
sorry
cheers, if it helped any


>
> bash peng ; printf \\n ; cat p ; printf \\n ; cat peng
>
> 2534
> 0
> 41
> 44
> 44
>
> 2535
> 2536
> 2537
>
> #!/bin/bash
>
> printf $BASHPID\\n
>
> >p
>  while read -r x ; do
> >/dev/null printf %s\\n <( printf $BASHPID\\n >>p ; exit 44 )
>  done < <( printf $BASHPID\\n >>p ; printf shit\\nbla\\n ; exit 41 )
>
> printf $?\\n
>
>  while read -r p ; do
> wait $p
> echo $?
>  done <p
>


reply via email to

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