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

Shim for pcregrep shadows system binary #36

Open
digitalcora opened this issue Jul 28, 2020 · 0 comments
Open

Shim for pcregrep shadows system binary #36

digitalcora opened this issue Jul 28, 2020 · 0 comments
Assignees

Comments

@digitalcora
Copy link

I have a system install of PCRE tools that includes the pcregrep binary. When I installed the asdf-crystal plugin, suddenly I couldn't run pcregrep anymore, with this error:

asdf: No version set for command pcregrep
you might want to add one of the following in your .tool-versions file:

crystal 0.35.1

It seems that the shims for a plugin always exist in the PATH even if no version of the language is active, shadowing any system binaries of the same name.

I'm not sure why a plugin for Crystal should necessarily provide a pcregrep binary; I searched the code in this repo but there were no results. Maybe the language distribution itself happens to include a pcregrep, and the plugin is just adding shims for every binary rather than choosing a specific subset?

@smorimoto smorimoto self-assigned this Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants