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

[Fix] grep: warning: stray \ before / #2919

Merged
merged 1 commit into from
Oct 20, 2022
Merged

[Fix] grep: warning: stray \ before / #2919

merged 1 commit into from
Oct 20, 2022

Conversation

ryenus
Copy link
Contributor

@ryenus ryenus commented Oct 20, 2022

No need to escape the / char in a grep pattern.
This is to fix the below error when using newer grep with nvm_command_info

$ nvm_command_info curl
grep: warning: stray \ before /
/usr/bin/curl

This happens with at least GNU grep 3.8 version.

No need to escape the `/` char in a grep pattern.
This is to fix the below error when using newer grep with `nvm_command_info`

> $ nvm_command_info curl
> grep: warning: stray \ before /
> /usr/bin/curl

This happens with at least GNU grep 3.8 version.
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine, as long as it works in older greps too.

@ljharb ljharb merged commit 9721791 into nvm-sh:master Oct 20, 2022
@ryenus ryenus deleted the patch-1 branch June 7, 2024 00:36
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.

2 participants