Issue with -0 option for xargs in version 1.22.1

Tyson Williams tyson.d.w at gmail.com
Wed Nov 7 18:57:15 UTC 2018


Hello,

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.

Usage: xargs [OPTIONS] [PROG ARGS]

------------------------------------------------------------------

On the Documentation => Command Help page
<https://www.busybox.net/downloads/BusyBox.html>, it says that xargs with
the option -0 is supported:

------------------------------------------------------------------
xargs
xargs [OPTIONS] [PROG [ARGS]]

Run PROG on every item given by standard input

Options:

        -p      Ask user whether to run each command
        -r      Do not run command if input is empty
        -0      Input is separated by NUL characters
        -t      Print the command on stderr before execution
        -e[STR] STR stops input processing
        -n N    Pass no more than N args to PROG
        -s N    Pass command line of no more than N bytes
        -x      Exit if size is exceeded
------------------------------------------------------------------

Since I don't see a version on that page, my assumption is that this
documentation is for the most recent version.  On the new page, I see
change logs going past the version that I am using.  However, the hit when
searching for "xargs" are not related to its -0 option.

Does version 1.22.1 have a bug with the -0 option for xargs or am I doing
something wrong?

Thank you very much for any assistance with this issue.

-- 
Tyson Williams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20181107/6909a80f/attachment-0001.html>


More information about the busybox mailing list