[pisto@kp ~]$ echo | yq -n --argfile a <(echo '{"a":"hello"}') --argfile b <(echo '{"b":"world"}') '$a + $b'
jq: Bad JSON in --argfile a /dev/fd/63: Could not open /dev/fd/63: No such file or directory
This is due to the fact that yq spawns another process, and there file descriptor 63 appears to be invalid. It appears that the fd is being FD_CLOEXEC'd, but I cannot tell why.
Version: 2.11.1
Command substitution is very handy to combine multiple documents:
but it does not work in
yq
:This is due to the fact that
yq
spawns another process, and there file descriptor 63 appears to be invalid. It appears that the fd is beingFD_CLOEXEC
'd, but I cannot tell why.