summary refs log tree commit diff
diff options
context:
space:
mode:
authorShlomi Fish <shlomif@shlomifish.org>2019-08-03 08:53:05 +0300
committerPeter Stephenson <p.stephenson@samsung.com>2019-08-03 10:57:02 +0100
commit90fa6ee042215bf4304e1b0063bc35bf8ed4594c (patch)
tree6d436c3669040309febf528b38e483f3eb1440b9
parent5fd80faf982ee0ca5781a4c977177efdfb2f0865 (diff)
downloadzsh-90fa6ee042215bf4304e1b0063bc35bf8ed4594c.tar.gz
zsh-90fa6ee042215bf4304e1b0063bc35bf8ed4594c.tar.xz
zsh-90fa6ee042215bf4304e1b0063bc35bf8ed4594c.zip
44637: = doesn't need quoting in awk regexp.
Known to cause warnings in gawk 5.
-rw-r--r--ChangeLog5
-rw-r--r--Src/makepro.awk2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9f5250b29..a39ee7665 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-08-03  Peter Stephenson  <p.stephenson@samsung.com>
+
+	* 44637: Shlomi Fish: Src/makepro.awk: "=" doesn't need quoting
+	in awk regexp and can cause warnings.
+
 2019-07-30  Peter Stephenson  <p.stephenson@samsung.com>
 
 	* Eric Cook: 24102: Completion/Unix/Command/_user_admin: subuids
diff --git a/Src/makepro.awk b/Src/makepro.awk
index 0498c1545..226d3f96b 100644
--- a/Src/makepro.awk
+++ b/Src/makepro.awk
@@ -121,7 +121,7 @@ BEGIN {
 		# initialiser.
 		dcltor = substr(line, 1, RLENGTH-1)
 		line = substr(line, RLENGTH+1)
-		sub(/\=.*$/, "", dcltor)
+		sub(/=.*$/, "", dcltor)
 		match(dcltor, /^([^_0-9A-Za-z]| const )*/)
 		dcltor = substr(dcltor, 1, RLENGTH) "@+" substr(dcltor, RLENGTH+1)
 		match(dcltor, /^.*@\+[_0-9A-Za-z]+/)