[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep bug involving carets within lists
From: |
Gilbert C Healton |
Subject: |
grep bug involving carets within lists |
Date: |
Wed, 19 Mar 2003 13:41:32 -0500 (EST) |
grep --version
grep (GNU grep) 2.4.2
Any use of caret (^) within [] list processing results in matches.
Try the following on any file that does not contain any carets but
does contain a letter "e". Digits are NOT necessary. In fact a file
without digits and carets shows the bug better.
grep 'e[0-9^]'
grep 'e[0-9\^]'
The above will match on ANY LINE matching /e./.
----------------------------------------------------------------------
address@hidden http://www.exit109.com/~ghealton/
----------------------------------------------------------------------
Computers are like air conditioners:
they don't work well when Windows are left open
- grep bug involving carets within lists,
Gilbert C Healton <=