This question is similar to the following link, but focused on using the command line (bash shell).
Using a simple example, when doing the following command:
$ cat <(date); echo $? Fri Jul 7 21:04:38 UTC 2017 0
The exit value is 0 as expected.
In the following command there is an error introduced on purpose, but the return value is still 0:
$ cat <(datE); echo $? bash: datE: command not found... Similar command is: 'date' 0
Is there a way to catch that there was an error in the process substitution when run on the command line (i.e. without having to put it into a script) ?
The solution in the included link above kills the script that is running the command.