Issue with -0 option for xargs in version 1.22.1
James Bowlin
bitjam at gmail.com
Wed Nov 7 20:31:21 UTC 2018
On Wed, Nov 07, 2018 at 12:57 PM, Tyson Williams said:
> I am using BusyBox version 1.22.1. When I execute
>
> ------------------------------------------------------------------
> echo hi | xargs -0
> ------------------------------------------------------------------
>
> the output I get is
>
> ------------------------------------------------------------------
> xargs: invalid option -- '0'
> BusyBox v1.22.1 (2018-10-09 12:23:13 AWST) multi-call binary.
I can't replicate the problem here using bb v1.22.1 or more
recent versions.
$ echo hi | ./xargs -0
hi
$ readlink ./xargs
busybox
$ ./busybox | head -n1
BusyBox v1.22.1 (2014-08-20 14:42:05 MDT) multi-call binary.
My guess is the problem is in your build process or perhaps in
a library you are using. I use the build-root system to create
a custom version of busybox.
Peace, James
More information about the busybox
mailing list