severity 599871 wishlist quit Hi again,
Joel Roth wrote: > $ perl -e "system('cat 2>&1>/dev/null &')" > sh: Syntax error: redirection unexpected Hmm, standards are hard to read. :( What I had missed: "The following grammar defines the Shell Command Language. This formal syntax shall take precedence over the preceding text syntax description. 2.10.1 Shell Grammar Lexical Conventions [...] 3. If the string consists solely of digits and the delimiter character is one of '<' or '>' , the token identifier IO_NUMBER shall be returned." The example tokenizes as WORD{cat} IO_NUMBER{2} GREATAND{>&} IO_NUMBER{1} '>' WORD{/dev/null} '&' or in more conventional terms, cat 2>& 1>/dev/null & which is malformed, since there is no WORD following the >& operator. Although it would be possible to parse this differently without breaking conforming applications, it is not clear that that would render dash any better at what it is designed to do (which is to be fast and POSIX-compliant). Thanks again, and sorry for the confusion. Jonathan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org