You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xargs: empty items are dropped with -0 and -d #889
Dropping the item also changes the behavior of options that count arguments. For example, GNU runs test -n '' here and exits 123, while uutils skips that invocation and exits 0:
printf'a\0\0b\0'| xargs -0 -n1 test -n
Likewise, printf '\0' | xargs -0 -r printf '[%s]\n' prints [] with GNU but runs nothing with uutils.
This is specific to byte-delimited input. Without -0 or -d, empty lines do not become empty arguments.
Tested on Linux x86_64 against GNU findutils 4.11.0.
Activity