Hi,
I've found an issue with xargs.
This works as expected:
$ printf 'hello\nworld\n' | xargs -I arg printf '>%s<\n' "arg"
>hello<
>world<
However, when I use nul-termination instead:
$ printf 'hello\00world\00' | xargs -0 -I arg printf '>%s<\n' "arg"
>hello world<
This is in contrast to e.g. GNU coreutils:
$ printf 'hello\00world\00' | gxargs -0 -I arg printf '>%s<\n' "arg"
>hello<
>world<
Have I misunderstood how the OpenBSD xargs is supposed to work?
This is on OpenBSD-current (sources from the 15th of Jan, 2017) on
amd64.
Regards,
Kusalananda
[demime 1.01d removed an attachment of type application/pgp-signature which had
a name of signature.asc]