If exec is specified without command or arguments, and any file descriptors with numbers greater than 2 are opened with associated redirection statements, it is unspecified whether those file descriptors remain open when the shell invokes another utility.
Does that mean using exec to open FDs is undefined behaviour?
Not sure how to interpret this part of the spec:
Does that mean using
exec
to open FDs is undefined behaviour?