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

grep -P doesn't work, pcregrep does #906

Closed
ianbytchek opened this Issue Oct 3, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@ianbytchek

ianbytchek commented Oct 3, 2015

Big admirer of perl regular expressions. Enjoy them most with grep. Couldn't help to notice, that grep -P on CoreOS fails with grep: support for the -P option is not compiled into this --disable-perl-regexp binary, yet pcregrep works just fine. If I recall correctly, they use the same library, why not enable this in grep too? Or am I confusing something?

@mischief

This comment has been minimized.

mischief commented Oct 8, 2015

it looks like pcre USE flag is turned off in https://github.com/coreos/coreos-overlay/blob/master/profiles/coreos/base/make.defaults#L19, but it's not clear why that is the case. perhaps @marineam knows?

@marineam

This comment has been minimized.

marineam commented Oct 8, 2015

@mischief inherited from ChromeOS to avoid unneeded libraries, but I'll bet something we ship has a non-optional dep on pcre and we are shipping it anyway. Need to check that though.

@marineam

This comment has been minimized.

marineam commented Oct 8, 2015

selinux and nmap (we only ship ncat though) pull in libpcre, so disabling it for grep doesn't gain anything.

@mischief

This comment has been minimized.

mischief commented Oct 8, 2015

@ianbytchek this feature will appear in coreos alpha soon, probably next week.

@ianbytchek

This comment has been minimized.

ianbytchek commented Oct 9, 2015

Thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment