Skip to content

env: -a/--argv0 without a command should be an error #15991

Closed

Description

@sylvestre
$ env -a foo; echo $?

GNU:

env: must specify command with --argv0 (-a)
Try 'env --help' for more information.
125

uutils ignores -a, prints the environment and exits 0.

Reported in #15254 (found by a differential fuzzer; reproduced against GNU coreutils 9.12).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions