> On Jun 29, 2021, at 3:20 PM, tg...@mirbsd.org via austin-group-l at The Open 
> Group <austin-group-l@opengroup.org> 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
>  ... ... ...

        • Re: uti... Vincent Lefevre via austin-group-l at The Open Group
          • Re:... tg...@mirbsd.org via austin-group-l at The Open Group
        • Re: uti... mirabilos via austin-group-l at The Open Group
          • Re:... Vincent Lefevre via austin-group-l at The Open Group
  • Re: utilities and wr... L A Walsh via austin-group-l at The Open Group
    • Re: utilities a... L A Walsh via austin-group-l at The Open Group
      • Re: utiliti... tg...@mirbsd.org via austin-group-l at The Open Group
        • Re: uti... L A Walsh via austin-group-l at The Open Group
          • Re:... tg...@mirbsd.org via austin-group-l at The Open Group
          • Re:... L A Walsh via austin-group-l at The Open Group
          • Re:... Don Cragun via austin-group-l at The Open Group
          • Re:... tg...@mirbsd.org via austin-group-l at The Open Group
          • Re:... Joerg Schilling via austin-group-l at The Open Group
          • Re:... Chet Ramey via austin-group-l at The Open Group
          • Re:... Harald van Dijk via austin-group-l at The Open Group
        • Re: uti... Chet Ramey via austin-group-l at The Open Group
    • Re: utilities a... Vincent Lefevre via austin-group-l at The Open Group
      • Re: utiliti... L A Walsh via austin-group-l at The Open Group
        • Re: uti... Oğuz via austin-group-l at The Open Group
        • Re: uti... Vincent Lefevre via austin-group-l at The Open Group

Reply via email to