I'm trying to pass multiple outputs to a command using sub-processes. This is (a shortened version of) my command:
cat "$1" one=cat "$1"
The output of
command <(echo "foo") is
foo /dev/fd/63: Permission denied
cat "$1" works I assume the function has the permission to read the output of the sub-process', but permission is denied when I attempt to put it into a variable. Why is this, and is there any way around it?