-
Notifications
You must be signed in to change notification settings - Fork 142
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
sd returns exit code 0, even when there's no match #157
Comments
Sorry, but I do not think it is a bug for me...
|
People may want to easily know if nothing matched the pattern. At the very least it would be nice to add a flag that fails with a non-zero status if there was no match |
More information: https://stackoverflow.com/a/15965681/13031497 Edit: Sorry about that I misunderstand. I also agree with a new flag. |
I'm not sure where there's a disagreement. What you said matches my
I was thinking something along the lines of a Edit: Just to be clear I wasn't thinking of changing the default behavior. We should typically default to matching |
Mark this as a feature request then, not a bug |
I would like to second this. Just ran into an issue like this, and had to use oldschool |
When
sd
doesn't match an input, it should not return with exit code0
this will cause issues when scripting.The text was updated successfully, but these errors were encountered: