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

Deprecated: 'which' should be command -v #205

Closed
WSLUser opened this issue Oct 5, 2021 · 0 comments · Fixed by #213
Closed

Deprecated: 'which' should be command -v #205

WSLUser opened this issue Oct 5, 2021 · 0 comments · Fixed by #213
Labels
Bug This is either an issue that describes a bug or a PR that resolves a bug Status: Pending Release This is fixed but not yet released. Target: 3.x This is targeted to the 3.x version.

Comments

@WSLUser
Copy link

WSLUser commented Oct 5, 2021

Background Information:

  • Build: 21H1
  • WSL: Pengwin
  • Version: Dev

Describe the bug
A clear and concise description of what the bug is.
When opening Pengwin, I see

/usr/bin/which: this version of `which' is deprecated; use `command -v' in scripts instead.

To Reproduce
Steps to reproduce the behavior:

Open Pengwin or some other later distro such as Fedora.
Expected behavior
A clear and concise description of what you expected to happen.
Use command -v instead, verify it still works on older distros like CentOS and Ubuntu 16.04

Additional context
Add any other context about the problem here.
Not replacing this will eventually result in breakage of all scripts which make use of which. I noticed at least one script which makes use of this. I also will file this against Pengwin to get those scripts updated too.

crramirez added a commit to crramirez/wslu that referenced this issue Oct 5, 2021
@patrick330602 patrick330602 added Bug This is either an issue that describes a bug or a PR that resolves a bug Status: Pending Release This is fixed but not yet released. Target: 3.x This is targeted to the 3.x version. labels Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is either an issue that describes a bug or a PR that resolves a bug Status: Pending Release This is fixed but not yet released. Target: 3.x This is targeted to the 3.x version.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants