when xargs runs in parallel mode (using -P flag), it may sometimes return incorrect exit code. The following code shows current (incorrect) behaviour: /bin directory exists, /foo directory does not exist. `echo /bin /foo | xargs -n1 -P2 test -d` sometimes return 0 sometimes return 1: ``` root@freebsd:~ # test -d /bin root@freebsd:~ # echo $? 0 root@freebsd:~ # test -d /foo root@freebsd:~ # echo $? 1 root@freebsd:~ # echo /bin /foo | xargs -n1 -P2 test -d root@freebsd:~ # echo $? 0 root@freebsd:~ # echo /bin /foo | xargs -n1 -P2 test -d root@freebsd:~ # echo $? 1 root@freebsd:~ # echo /bin /foo | xargs -n1 -P2 test -d root@freebsd:~ # echo $? 0 ```
sorry, this is a duplicated *** This bug has been marked as a duplicate of bug 267110 ***