I'm outta my league here, but I'd think this is platform specific ... and you don't specify your platform.
Unixen have "file descriptors", I believe, in places like /dev/fd/$n, or /proc/self/fd, or /dev/stdin ...
You can avoid writing to these devices through the shell, try Googling "output redirection".