Wind River Support Network

HomeDefectsLIN8-8504
Fixed

LIN8-8504 : grep can not support Perl regular expression in WRLinux 8 project

Created: Jan 5, 2018    Updated: Dec 3, 2018
Resolved Date: Feb 26, 2018
Found In Version: 8.0.0.24
Fix Version: 8.0.0.25
Severity: Severe
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

In WRLinux 8 project, customer found their grep tool can not support -P parameter, which was used to support Perl regular expression.

The grep version in WRLinux 8 is 2.21, in it's release notes, it show -P still can be used.

But in WRLinux 4.3, the grep(2.5.1) can support -P parameter.

Steps to Reproduce

Build a WRLinux 8 x86 project, and step into $(prj_dir)/export/dist/bin
run the following command:
./grep.grep -o -P 'PATTERN'  file
then it will show:
./grep.grep: support for the -P option is not compiled into this --disable-perl-regexp binary


In a WRLinux 4.3 project, the same command can work well.

Other Downloads


Live chat
Online