On 28/11/2026 08:14, Collin Funk wrote:
Pádraig Brady <[email protected]> writes:

I.e. support `coreutils PROG` in addition to the existing
`coreutils --coreutils-prog=PROG` form. This is more natural and
provides better compat with other implementations.  Note this restricts
one to naming the multi-call binary ending with "coreutils".

* NEWS: Mention the new feature.
* doc/coreutils.texi (coreutils invocation): Mention the new
explicit invocation form.
* src/coreutils.c (main): Accept program name as the second arg.
* tests/misc/coreutils.sh: Add test cases.
---
  NEWS                    |  4 ++++
  doc/coreutils.texi      | 14 +++++++++++---
  src/coreutils.c         | 26 +++++++++++++-------------
  tests/misc/coreutils.sh | 20 ++++++++++++++++++++
  4 files changed, 48 insertions(+), 16 deletions(-)

Sounds good to me. I assume --coreutils-prog was never meant to be
written by users, but only for use with --enable-single-binary=shebangs?
Well --coreutils-prog-shebang is separate and used for that.

--coreutils-prog was used as a related option
to explicitly select a utility, while not caring
what the main dispatch binary was called.

Though it's quite awkward, and not really needed
as long as we call the dispatch binary something distinguishable.
This patchset sets that restriction to ending in "coreutils".

cheers,
Padraig

Reply via email to