Skip to content

-name / should match /// #24

Closed

Description

@tavianator

Repeated slashes for the root directory should match a single slash:

$ ./target/debug/find /// -maxdepth 0 -name /
$ find /// -maxdepth 0 -name /
find: warning: Unix filenames usually don't contain slashes (though pathnames do).  That means that '-name ‘/’' will probably evaluate to false all the time on this system.  You might find the '-wholename' test more useful, or perhaps '-samefile'.  Alternatively, if you are using GNU grep, you could use 'find ... -print0 | grep -FzZ ‘/’'.
///

Activity

  1. linked a pull request that will close this issue-name / should match /// #508on Mar 21, 2025
  2. hanbings commented on Mar 25, 2025

    @hanbings
    Collaborator
  3. linked a pull request that will close this issueFix incorrect triple slashes behavior #512on Mar 26, 2025
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