> On Jun 29, 2021, at 3:20 PM, [email protected] via austin-group-l at The Open
> Group <[email protected]> wrote:
>
>> ... ... ...
>
> Ah, so you meant…
>
>> "/tmp cd ~ >& /dev/zero"
>
> … which was not clear from the punctuation salad you posted.
>
>> "Violates POSIX on the parse level?!" Eek! Next
>
> It does: >& is parsed as > & by POSIX rules, TTBOMK.
No. According to XCU Section 2.7.6 (Duplicating an Output File Descriptor)
redirection operators of the form:
[n]>&word
closes file descriptor n if word is "-" and opens file descriptor n as a
duplicate of the file descriptor specified by word if word is a string of
digits.
If n is not specified, standard output is closed or made to be a duplicate of
the file descriptor specified by word.
If word (in this case an empty string) is not a string of digits and word is
not "-", the results are explicitly unspecified.
Cheers,
Don
>
> bye,
> //mirabilos
> ... ... ...