Why grep 2.7 complains of incorrect character in /etc/profile.d/lang.csh in Red Hat Enteprise Linux?
Issue
- The character class used in the
grepcommand on line 6 of/etc/profile.d/lang.cshis[:blank:], the correct representation should be either[[:blank:]]or[[:space:]]. With version 2.7 of GNU grep, the following warning is issued:
grep: character class syntax is [[:space:]], not [:space:] -
This problem does not occur with the version of
grepincluded in Red Hat Enterprise Linux 4 and 5.
Environment
- Red Hat Enterprise Linux 4 or 5
- grep-2.7 (compiled by customer)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.