On Mon, 21 Dec 2015 10:31:57 +0100 Matthias Klose <d...@debian.org> wrote:
> xargs is independent of gawk/mawk. however I can't even reproduce this one: The output of "xargs --show-limit" is different for the versions in unstable (findutils 4.4.2-10) and experimental (findutils 4.5.14-3): @@ -1,6 +1,7 @@ -Your environment variables take up 1483 bytes -POSIX upper limit on argument length (this system): 2093621 +Your environment variables take up 1482 bytes +POSIX upper limit on argument length (this system): 2093622 POSIX smallest allowable upper limit on argument length (all systems): 4096 -Maximum length of command we could actually use: 2092138 +Maximum length of command we could actually use: 2092140 Size of command buffer we are actually using: 131072 +Maximum parallelism (--max-procs must be no greater): 2147483647 Note the additional "Maximum parallelism ..." line. That makes awk print 2 lines instead of one. Suggested fix: use awk '/Maximum length/ ...' instead of awk '/Maximum/ ...' Cheers, Roderich