Skip to content

find -exec {} [args...] \; fails #614

@e-kwsm

Description

@e-kwsm

revision: 245623e

cd /
find /usr/bin -name pwd -exec {} -P ';'  # /usr/bin/pwd -P

GNU and BSD show

/

and exit zero, whereas uutils fails:

Failed to run {}: No such file or directory (os error 2)

As per https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/find.html, this is valid.

-exec utility_name [argument ...] ;

A utility_name or argument containing only the two characters "{}" shall be replaced by the current pathname.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions