On Tue, Mar 18, 2025, at 8:55 AM, Geoff Clare via austin-group-l at The Open
Group wrote:
> I disagree - as per my earlier email, quoted at the end of the bug
> description, the standard says "one input file descriptor from another",
> implying that they are two different file descriptors, so the behaviour
> of 0<&0 is currently unspecified (implicitly).
Is the behavior of this rationale example unspecified as well?
Since the connection of the input to the equivalent of
/dev/null is considered to occur before redirections, the
following script would produce no output:
exec < /etc/passwd
cat <&0 &
wait
https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/xrat/V4_xcu_chap01.html#tag_23_02_09_12
--
vq