Message176813
$ echo 'bbbbbaaa' | grep -o 'b\{1,3\}a'
bbba
$ echo 'bbbbbaaa' | grep -o 'b\{1, 3\}a'
grep: Invalid content of \{\}
$ echo 'bbbbbaaa' | egrep -o 'b{1,3}a'
bbba
$ echo 'bbbbbaaa' | egrep -o 'b{1, 3}a'
$ echo 'bbb{1, 3}aa' | LC_ALL=C egrep -o 'b{1, 3}a'
b{1, 3}a
I.e. grep raises error and egrep chooses silent verbatim meaning. I don't know what any standards say about this. |
|
Date |
User |
Action |
Args |
2012-12-02 22:40:27 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, sjmachin, pitrou, ezio.melotti, mrabarnett |
2012-12-02 22:40:27 | serhiy.storchaka | set | messageid: <1354488027.95.0.588317456006.issue11204@psf.upfronthosting.co.za> |
2012-12-02 22:40:27 | serhiy.storchaka | link | issue11204 messages |
2012-12-02 22:40:27 | serhiy.storchaka | create | |
|