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

get rid of grep warning #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

inphobia
Copy link

recent versions of gnu grep might complain if your regex makes no sense for the chosen engine
(basic, extended or perl). this was added around gnu grep 3.8

anyway, for the regular expression to check if we run under docker no flag is given so we run the basic regex engine, and in the basic engine forward slash has no special meaning and does not need to be escaped by a backslash.

gets rid of:
grep: warning: stray \ before /

egrep/fgrep are also on their last legs; see https://www.gnu.org/software/grep/manual/html_node/Usage.html item 17 & should be changed to grep -E / -F, warnings for not doing so might be added soon as well.

…se for the chosen engine

(basic, extended or perl). this was added around gnu grep 3.8

anyway, for the regular expression to check if we run under docker no flag is given so we run
the basic regex engine, and in the basic engine forward slash has no special meaning and does
not need to be escaped by a backslash.

gets rid of:
grep: warning: stray \ before /
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.

1 participant