Skip to content
Myr

Update documentation of --batch-size feature

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent f52dec1 · Browse files · 3 files+6 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+6 added−3 removed

  • other:+6 added−3 removed

3 files+6 added−3 removed

modified:doc/fd.1+2 added-1 removed
414 unmodified lines
415.TP416.BI "\-\-batch-size " size417Maximum number of arguments to pass to the command given with -X. If the number of results is418greater than the given size, the command given with -X is run again with remaining arguments. A419batch size of zero means there is no limit.419batch size of zero means there is no limit (default), but note that batching might still happen420due to OS restrictions on the maximum length of command lines.421.SH PATTERN SYNTAX422The regular expression syntax used by fd is documented here:423424 https://docs.rs/regex/1.0.0/regex/#syntax
35 unmodified lines
modified:src/app.rs+3 added-1 removed
451 unmodified lines
452 .long_help(453 "Maximum number of arguments to pass to the command given with -X. \454 If the number of results is greater than the given size, \455 the command given with -X is run again with remaining arguments. \456 A batch size of zero means there is no limit.",456 A batch size of zero means there is no limit (default), but note \457 that batching might still happen due to OS restrictions on the \458 maximum length of command lines.",459 ),460 )461 .arg(462 Arg::new("exclude")
312 unmodified lines
modified:CHANGELOG.md+1 added-1 removed
8 unmodified lines
9- "Argument list too long" errors can not appear anymore when using `--exec-batch`/`-X`, as the command invocations are automatically batched at the maximum possible size, even if `--batch-size` is not given. See #410 and #1020 (@tavianator)1011## Changes1213- The `-u` flag was changed to be equivalent to `-HI` (previously, a single `-u` was only equivalent to `-I`). Additional `-u` flags are still allowed, but ignored. See #840 and #986 (@jacksontheel)13- Directories are now printed with an additional path separator at the end: `foo/bar/`, see #436 and #812 (@yyogo)14- The `-u` flag was changed to be equivalent to `-HI` (previously, a single `-u` was only equivalent to `-I`). Additional `-u` flags are still allowed, but ignored. See #840 and #986 (@jacksontheel)1516## Other1718- Added installation instructions for RHEL8, see #989 (@ethsol)
573 unmodified lines