OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Otto Moerbeek (ottocvs.openbsd.org)
Date: Sun Apr 03 2005 - 14:12:41 CDT


CVSROOT: /cvs
Module name: src
Changes by: ottocvs.openbsd.org 2005/04/03 13:12:40

Modified files:
        usr.bin/grep : grep.c util.c

Log message:
Protect begin and end of word markers added to the pattern when
using the -w option with parentheses, to avoid operators in the
expressions binding to the markers. Compare [[:<:]]foo|bar[[:>:]]
and [[:<:]](foo|bar)[[:>:]]. Problem spotted by aaron; ok millert
aaron jaredy