Fix udbParseLib.awk so it doesn't generate warnings with gawk.
authorDavid Cantrell <dcantrell@redhat.com>
Thu, 23 Aug 2012 19:52:06 +0000 (15:52 -0400)
committerJon Trulson <jon@radscan.com>
Fri, 24 Aug 2012 02:39:46 +0000 (20:39 -0600)
Tested this change with both gawk and nawk and it worked fine.  If
the extra escape character is present and gawk is used, you'll get
warnings from gawk telling you it's ignoring the escape sequence
and just treating it as the character to begin with.

cde/admin/IntegTools/dbTools/udbParseLib.awk

index a10af39137364005d2230f839dc20e8e7efef83d..86691967e90c3006ed23e42717f3ea0a13b7ba07 100644 (file)
@@ -342,11 +342,11 @@ function tokenize() {
        #
         # allow escaping of significant syntax characters
         #
-        gsub("[\\\][{]","{")
-        gsub("\\\:",":")
-        gsub("\\\;",";")
-        gsub("\\\=","=")
-        gsub("[\\\][}]","}")
+        gsub("[\\][{]","{")
+        gsub("\\:",":")
+        gsub("\\;",";")
+        gsub("\\=","=")
+        gsub("[\\][}]","}")
 
        #
        # Having insured that interesting chars are surrounded by blanks