> But I am wondering if there is a walkaround to deal with errors in > <(). The ideal behavior should be that if there is a error in <(), > then we should not consider commandA is executed correctly even if its > return status is 0. Again, address your questions to help-bash.
you can use: CommandB | CommandA, and consult the PIPESTATUS array. Or, you can do: mkfifo Fifo CommandB > Fifo & Bpid=$! CommandA < Fifo if wait "$Bpid"; then echo CommandB was successful else echo CommandB failed fi