You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using grep in the context of set -e, it is not generally the intent to exit the script on non-match situations. When the grep is in the context of a conditional, this is avoided, but sometimes it's used to assign variables and the result is unexpected.
For new checks and feature suggestions
Using grep in the context of
set -e
, it is not generally the intent to exit the script on non-match situations. When thegrep
is in the context of a conditional, this is avoided, but sometimes it's used to assign variables and the result is unexpected.Real world example: this line caused habitat-sh/habitat#4834
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Nothing
Here's what I wanted or expected to see:
The text was updated successfully, but these errors were encountered: