Given
find . -exec foo{}bar \;
GNU find will replace `{}` by the filename. This commit matches that
behavior.
Note that this is not required by the POSIX spec.
The GNU testsuite doesn't cover this case, so I've added a test in this
repo.
This includes much of the core xargs functionality, with the following
notable exceptions:
- Parallel execution (`-P`): This option currently just does
nothing, that way anything that passes -P can at least run without a
notable behavior shift (other than simply being slower).
- Replacement strings (`-I`): This can easily be worked around via an
intermediate shell invocation (e.g. `xargs -L1 sh -c 'do-things-with
$@' --`).
- EOF strings (`-E`): I've honestly never seen this actually used,
though it would not be particularly difficult to implement given the
current architecture.
Closes#37
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>