This is sources Bugzilla
Bugzilla Version 2.17.5
Bugzilla Bug 2856
  [patch] scripts/gen-sorted.awk caused mawk(1.3.3) to fail Last modified: 2007-11-03 11:57:25
     Query page      Enter new bug
Bug#: 2856   Hardware:   Reporter: sghnqk@gmail.com
Host: Target: Build:
Product:     Add CC:
Component:   Version:   CC:
Remove selected CCs
Status: NEW   Priority:  
Resolution:   Severity:  
Assigned To: Roland McGrath <roland@gnu.org>   Target Milestone:  
Flags: Requestee:
  backport ()
  examined ()
  testsuite ()
Summary:
Keywords:

Attachment Description Type Created Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 2856 depends on: Show dependency tree
Show dependency graph
Bug 2856 blocks:

Additional Comments:


Leave as NEW 
Mark bug as waiting for feedback
Mark bug as suspended
Accept bug (change status to ASSIGNED)
Resolve bug, changing resolution to
Resolve bug, mark it as duplicate of bug #
Reassign bug to
Reassign bug to owner of selected component

View Bug Activity   |   Format For Printing


Description:   Last confirmed: 0000-00-00 00:00 Opened: 2006-06-27 17:27
regex not compatible with mawk

Index: scripts/gen-sorted.awk
===================================================================
RCS file: /cvs/glibc/libc/scripts/gen-sorted.awk,v
retrieving revision 1.2
diff -u -r1.2 gen-sorted.awk
--- scripts/gen-sorted.awk	28 Feb 2006 07:05:57 -0000	1.2
+++ scripts/gen-sorted.awk	27 Jun 2006 17:21:34 -0000
@@ -16,7 +16,7 @@
 {
   subdir = type = FILENAME;
   sub(/^.*\//, "", type);
-  sub(/\/[^/]+$/, "", subdir);
+  sub(/\/[^\/]+$/, "", subdir);
   sub(/^.*\//, "", subdir);
   thisdir = "";
 }
@@ -56,13 +56,13 @@
     # The Subdirs file comes from an add-on that should have the subdirectory.
     dir = FILENAME;
     do
-      sub(/\/[^/]+$/, "", dir);
+      sub(/\/[^\/]+$/, "", dir);
     while (dir !~ /\/sysdeps$/);
     sub(/\/sysdeps$/, "", dir);
     if (system("test -d " dir "/" thisdir) == 0)
       dir = dir "/" thisdir;
     else {
-      sub(/\/[^/]+$/, "", dir);
+      sub(/\/[^\/]+$/, "", dir);
       if (system("test -d " dir "/" thisdir) == 0)
         dir = dir "/" thisdir;
       else {

------- Additional Comment #1 From Stephane Loeuillet 2007-11-03 11:57 -------
Problem still present in 2.7
mawk is default in all debian and ubuntu systems.

gawk works fine with this regexp

     Query page      Enter new bug
Actions: New | Query | bug # | Reports | Requests   New Account | Log In