Ummm, isn't this supposed to work? I'm guessing there's a technical
reason why it doesn't...?
# fails:
$ history -r <(echo 'echo bad')
# succeeds:
$ history -w >(cat -n)
-----
$ help | head -n 1
GNU bash, version 5.2.37(1)-release (aarch64-apple-darwin23.4.0)
$ echo 'echo good' > hist.txt
$ cat hist.txt
echo good
$ cat <(cat hist.txt)
echo good
$ echo <(cat hist.txt)
/dev/fd/63
$ history -r hist.txt
$ history
1 help | head -n 1
2 echo 'echo good' > hist.txt
3 cat hist.txt
4 cat <(cat hist.txt)
5 echo <(cat hist.txt)
6 history -r hist.txt
7 echo good
$ history -r <(cat hist.txt); echo $?
1
$ history -r <(echo 'echo bad'); echo $?
1
$ history -w >(cat -n)
1 help | head -n 1
2 echo 'echo good' > hist.txt
3 cat hist.txt
4 cat <(cat hist.txt)
5 echo <(cat hist.txt)
6 history -r hist.txt
7 echo good
8 history -r <(cat hist.txt); echo $?
9 history -r <(echo 'echo bad'); echo $?
10 history -w >(cat -n)