|
From: | Steven Penny |
Subject: | [bug-gawk] POSIX mode "system" returing invalid exit status |
Date: | Thu, 22 Mar 2018 20:07:50 -0700 (PDT) |
User-agent: | Tryst/2.4.0 (github.com/svnpenn/tryst) |
Good: $ awk 'BEGIN {print system("grep")}' Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. 2 Bad: $ awk --posix 'BEGIN {print system("grep")}' Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. 512 Note that Mawk and Nawk produce the expected "2".
[Prev in Thread] | Current Thread | [Next in Thread] |