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

find: warning: ‘-name’ matches against basenames only #1286

Closed
wyrie opened this issue Nov 9, 2022 · 3 comments
Closed

find: warning: ‘-name’ matches against basenames only #1286

wyrie opened this issue Nov 9, 2022 · 3 comments
Labels
bug Bug related to code base, behavior, displaying, etc. released Released issues and PRs

Comments

@wyrie
Copy link

wyrie commented Nov 9, 2022

The problem

The latest update prints this error to the terminal
find: warning: ‘-name’ matches against basenames only, but the given pattern contains a directory separator (‘/’), thus the expression will evaluate to false all the time. Did you mean ‘-wholename’?

Change the find command in lib/utils.zsh to use wholename as the warning suggests removes the message. No idea on whether that still works as intended.

Relevant Zsh configuration

No response

What is version of Spaceship are you using?

4.9.1

What is version of Zsh are you using?

zsh 5.8 (x86_64-debian-linux-gnu)

What operation system are you running?

Linux

Do you use any Zsh framework or plugin manager?

oh-my-zsh

Which terminal emulator do you use?

iTerm

Additional information

No response

@wyrie wyrie added the bug Bug related to code base, behavior, displaying, etc. label Nov 9, 2022
@denysdovhan
Copy link
Member

Thanks for reporting! Fixing that!

@denysdovhan
Copy link
Member

Thanks for reaching out! Try the upcoming v4.9.2 patch.

denysdovhan pushed a commit that referenced this issue Nov 10, 2022
# [4.10.0](v4.9.1...v4.10.0) (2022-11-10)

### Bug Fixes

* **java:** Added support gradle kotlin dsl ([#1289](#1289)) ([5b186d6](5b186d6))
* **java:** detect empty java version ([178ffc9](178ffc9))
* **sudo:** Sudo should be hidden by default ([36a5852](36a5852))
* **upsearch:** find complains about -name. Fix [#1286](#1286) ([5e8b7c0](5e8b7c0))
* **upsearch:** Prevent globs from expanding to early ([b10e093](b10e093))

### Features

* **gnu_screen:** Add Screen session section to prompt ([#1062](#1062)) ([f996381](f996381))
* **sudo:** Add sudo section ([49ce387](49ce387))
* **vlang:** Add V Section ([#877](#877)) ([9399e09](9399e09))
@denysdovhan
Copy link
Member

🎉 This issue has been resolved in version 4.10.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@denysdovhan denysdovhan added the released Released issues and PRs label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug related to code base, behavior, displaying, etc. released Released issues and PRs
Development

No branches or pull requests

2 participants