[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reading from external command
From: |
Lawrence Velázquez |
Subject: |
Re: reading from external command |
Date: |
Thu, 31 Mar 2022 21:17:41 -0400 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-382-g88b93171a9-fm-20220330.001-g88b93171 |
On Thu, Mar 31, 2022, at 9:01 PM, Peng Yu wrote:
> Where?
https://lists.gnu.org/archive/html/help-bash/2022-03/msg00072.html
Reproduced here:
% cat main.bash; echo
printf '%s\n' "$BASH_VERSION"
{
pid=$!
while read -r x; do
echo <(exit 42)
done
} < <(builtin printf '%s\n' a b c; exit 99)
wait "$pid"
echo "$?"
% bash main.bash
5.1.16(1)-release
/dev/fd/62
/dev/fd/62
/dev/fd/62
99
> Without requiring a temp file?
No temporary files are involved, unless you count the temporary
FIFOs inherent to using process substitution on systems that don't
have /dev/fd.
--
vq
- Re: reading from external command, (continued)
- Re: reading from external command, Chet Ramey, 2022/03/31
- Re: reading from external command, Peng Yu, 2022/03/31
- Re: reading from external command, Alex fxmbsw7 Ratchev, 2022/03/31
- Re: reading from external command, Alex fxmbsw7 Ratchev, 2022/03/31
- Re: reading from external command, Alex fxmbsw7 Ratchev, 2022/03/31
- Re: reading from external command, Alex fxmbsw7 Ratchev, 2022/03/31
- Re: reading from external command, Lawrence Velázquez, 2022/03/31
- Re: reading from external command, Peng Yu, 2022/03/31
- Re: reading from external command,
Lawrence Velázquez <=
- Re: reading from external command, Alex fxmbsw7 Ratchev, 2022/03/31
- Re: reading from external command, Peng Yu, 2022/03/31
- Re: reading from external command, Alex fxmbsw7 Ratchev, 2022/03/31