Skip to content

Empty brackets accepted #29

Closed
Closed

Description

@tavianator

I assume this isn't an intentional extension:

$ ./target/debug/find \( \)
.
./.git
...

Activity

  1. mcharsley commented on Jun 15, 2017

    @mcharsley
    Contributor

    I worked on the basis "when in doubt, do what GNU's find does". I grant you that it's fairly useless behaviour, but

    • it matches GNU find
    • it's harmless enough
  2. tavianator commented on Jun 15, 2017

    @tavianator
    ContributorAuthor

    But

    $ find \( \)
    find: invalid expression; empty parentheses are not allowed.
    

    Anyway, I agree it's relatively harmless to allow it.

  3. mcharsley commented on Jun 15, 2017

    @mcharsley
    Contributor
  4. hanbings commented on Apr 11, 2024

    @hanbings
    Collaborator

    Hello, I tried to solve it by adding a special judgment in the Matcher of uutils/findutils, and it seems to work. I've submitted a PR. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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