[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Weird behavior with -P '(?ms)C.*D'
From: |
Jori Mantysalo |
Subject: |
Weird behavior with -P '(?ms)C.*D' |
Date: |
Tue, 22 Jul 2003 16:23:11 +0300 (EEST) |
Now I don't understand at all... See:
address@hidden jm58660]$ echo -e 'ABC\nDEF' | grep --perl-regexp '(?ms)C.*D'
address@hidden jm58660]$ echo -e 'ABC\nDEF' | grep --perl-regexp '(?ms)C.*D'
address@hidden jm58660]$ echo -e 'ABC\nDEF' | grep --perl-regexp '(?ms)C.*D'
ABC
DEF
address@hidden jm58660]$ echo -e 'ABC\nDEF' | grep --perl-regexp '(?ms)C.*D'
ABC
DEF
address@hidden jm58660]$ echo -e 'ABC\nDEF' | grep --perl-regexp '(?ms)C.*D'
ABC
DEF
address@hidden jm58660]$ echo -e 'ABC\nDEF' | grep --perl-regexp '(?ms)C.*D'
address@hidden jm58660]$ echo -e 'ABC\nDEF' | grep --perl-regexp '(?ms)C.*D'
address@hidden jm58660]$ echo -e 'ABC\nDEF' | grep --perl-regexp '(?ms)C.*D'
address@hidden jm58660]$
Same command, different output? Seems to be random, but how can this
be? Well, I am using beta kernel (Linux 2.5.73), but how could it make
grep behave like this? Version of grep is 2.5.1.
--
Jori Mäntysalo
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Weird behavior with -P '(?ms)C.*D',
Jori Mantysalo <=