Wind River Support Network

HomeDefectsLIN10-3116
Fixed

LIN10-3116 : grep can not support Perl regular expression in WRLinux 8 project

Created: Jan 16, 2018    Updated: Dec 3, 2018
Resolved Date: Feb 6, 2018
Found In Version: 10.17.41.1
Fix Version: 10.17.41.4
Severity: Severe
Applicable for: Wind River Linux LTS 17
Component/s: Userspace

Description

In WRLinux 8 project,  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