gawk regex range operator not working
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gawk (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
awk --version
GNU Awk 3.1.8
Copyright (C) 1989, 1991-2010 Free Software Foundation.
apt-cache policy gawk
gawk:
Installed: 1:3.1.8+
Test-case:
echo "/tmp/tmp.
<no output>
echo "/tmp/tmp.
/tmp/tmp.Ofefwsef23
Same thing on 14.04, gawk 4.1.1, this is what I expect for 3.1.8 as well:
echo "/tmp/tmp.
/tmp/tmp.Ofefwsef23
According to the man page for the older gawk this is supposed to work
Regular Expressions
Regular expressions are the extended kind found in egrep. They are composed of characters as follows:
c matches the non-metacharacter c.
\c matches the literal character c.
. matches any character including newline.
^ matches the beginning of a string.
$ matches the end of a string.
[abc...] character list, matches any of the characters abc....
[^abc...] negated character list, matches any character except abc....
r1|r2 alternation: matches either r1 or r2.
r1r2 concatenation: matches r1, and then r2.
r+ matches one or more r's.
r* matches zero or more r's.
r? matches zero or one r's.
(r) grouping: matches r.
r{n}
r{n,}
r{n,m} One or two numbers inside braces denote an interval expression. If there is one number in the
\y matches the empty string at either the beginning or the end of a word.
\B matches the empty string within a word.
affects: | ubuntu → gawk (Ubuntu) |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1647879/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]