Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated find invocation not to use OSX-specific flags #13691

Merged
merged 1 commit into from
Apr 9, 2017

Conversation

stevekuznetsov
Copy link
Contributor

@stevekuznetsov stevekuznetsov commented Apr 9, 2017

The MacOS man page lists the following def:

     -d      Same as depth.  GNU find implements this as a primary in mistaken emulation of FreeBSD find(1).

     -depth n
             True if the depth of the file relative to the starting point of the traversal is n.

So what @smarterclayton originally wrote is identical to -mindepth 2 -maxdepth 2, which look to both be supported on OSX as well:

     -maxdepth n
             Always true; descend at most n directory levels below the command line arguments.  If any
             -maxdepth primary is specified, it applies to the entire expression even if it would not nor-
             mally be evaluated.  ``-maxdepth 0'' limits the whole search to the command line arguments.

     -mindepth n
             Always true; do not apply any tests or actions at levels less than n.  If any -mindepth primary
             is specified, it applies to the entire expression even if it would not normally be evaluated.
             ``-mindepth 1'' processes all but the command line arguments.

Signed-off-by: Steve Kuznetsov skuznets@redhat.com

/cc @smarterclayton

fixes #13453
supersedes #13635

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
@stevekuznetsov
Copy link
Contributor Author

[test]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to d72953b

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/664/) (Base Commit: 308e3e9)

@stevekuznetsov
Copy link
Contributor Author

[merge]

@stevekuznetsov
Copy link
Contributor Author

stevekuznetsov commented Apr 9, 2017

@stevekuznetsov
Copy link
Contributor Author

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to d72953b

@openshift-bot
Copy link
Contributor

openshift-bot commented Apr 9, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/299/) (Base Commit: 4d09d8a) (Image: devenv-rhel7_6128)

@openshift-bot openshift-bot merged commit 585b160 into openshift:master Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

find: paths must precede expression: 2
2 participants