Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16205
| From | "Jason A. Donenfeld" <Jason@zx2c4.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: process substitution fd lifetime race condition |
| Date | 2020-04-20 15:49 -0600 |
| Message-ID | <mailman.840.1587419406.3066.bug-bash@gnu.org> (permalink) |
| References | <20200420051508.GA2359844@zx2c4.com> <7496b183-2db3-6c03-6074-928adcd08f45@case.edu> <CAHmME9p_n_W6721mY4=MWpKJvDTNsvEQbA9EB5chsrwyOzSgqw@mail.gmail.com> <CAHmME9o+guCLQsOUxfhrwY83jRT04TqrNU-dVYPi0f=PdEv=kg@mail.gmail.com> <CAHmME9qEJ6SORKJg-y5VHhn3C3U=-U2iWr7tzf8yjb6abQG0rQ@mail.gmail.com> |
This one will reproduce immediately:
#!/bin/bash
set -e
a="my name is a"
b="my name is b"
sleep() { read -t "$1" -N 1 || true; }
doit() { sleep 0.1; "$@"; }
while true; do
doit cat <(echo "$a") <(echo "$b")
done
Back to gnu.bash.bug | Previous | Next | Find similar
Re: process substitution fd lifetime race condition "Jason A. Donenfeld" <Jason@zx2c4.com> - 2020-04-20 15:49 -0600
csiph-web