aboutsummaryrefslogtreecommitdiff
path: root/toys.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-10-09 14:48:15 -0700
committerRob Landley <rob@landley.net>2019-10-09 21:24:15 -0500
commit48d750ca5be4db45a3f04956a9d8ca87ddc45db2 (patch)
treefaae50e3059c81e0b8dd0c780eef81b2bb3f51ca /toys.h
parent52422388520e4bf82e56a4cce3f2c2076cbed834 (diff)
downloadtoybox-48d750ca5be4db45a3f04956a9d8ca87ddc45db2.tar.gz
xargs: various fixes.
Don't run the command with no arguments if we run out of input but have already run the command at least once. The implementation of "run the command at least once (unless -r was supplied)" wasn't taking into account whether or not this was our first time round the loop. Fix the exit value, and the -- already documented but not implemented -- behavior if a child exits with status 255. Also extend the tests to cover these cases, plus cases I broke while coming up with the fix. Add more tests to convince myself that we've correctly interpreted how -s is supposed to behave, and fix the corner cases at the bottom end of the range. This fixes some issues we were seeing trying to build the Android SDK for (and more importantly, on) macOS.
Diffstat (limited to 'toys.h')
0 files changed, 0 insertions, 0 deletions