1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

Fix udbParseLib.awk so it doesn't generate warnings with gawk.

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.
This commit is contained in:
David Cantrell 2012-08-23 15:52:06 -04:00 committed by Jon Trulson
parent e9a031ac7a
commit 6300831c65

View 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