This doesn't work:
$ head file | tee >(sort >&3) | paste <(cat <&3) -
bash: 3: Bad file descriptor
but I hope it's obvious what it's intended to do, the equivalent of:
$ head file | sort >temp1
$ head file >temp2
$ paste temp1 temp2
What is the proper way to create and use that parallel pipe?
(Assume "head" represents an expensive operation, and I'm aware of the dangers of deadlock.)