[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] An Issue About --re-interval And --traditional
From: |
Yan Lei |
Subject: |
[bug-gawk] An Issue About --re-interval And --traditional |
Date: |
Fri, 18 Jan 2013 17:45:48 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 |
Hi,
I got some problem when using gawk with options --re-interval and
--traditional.
As it is said on the gawk manpage, if --re-interval or -r is provided,
interval expressions in regular expression will be allowed, even if
--traditional or -c is provided. But when I tried the following command,
it did not run as expected:
echo -e "aabbbc\naaabcc" | gawk --traditional -r '/b{2,}/'
My expected output was aabbbc, but acturally, I got nothing. So please
kindly tell me if it was due to my command or the gawk itself.
My environment is:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
uname output: Linux RHEL7U0Alpha2-Intel64 3.3.0-0.20.el7.x86_64 #1
SMP Mon Jul 9 16:28:22 EDT 2012 x86_64 x86_64 x86_64
GNU/Linux
Machine Type: x86_64-redhat-linux-gnu
Thanks a lot!
Best Regards.
Yan
- [bug-gawk] An Issue About --re-interval And --traditional,
Yan Lei <=