summaryrefslogtreecommitdiff
path: root/Src/makepro.awk
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2023-12-13 11:34:12 +0100
committerOliver Kiddle <opk@zsh.org>2023-12-13 11:34:12 +0100
commit58840922eeefc90f3e688853ac6ec365fadc3445 (patch)
tree58966fd1d01c4b3bfc1ea12035d608d7f712cbe6 /Src/makepro.awk
parent25f5618b17cf5e9b5add518dffd512fe8503c6b2 (diff)
downloadzsh-58840922eeefc90f3e688853ac6ec365fadc3445.tar.gz
zsh-58840922eeefc90f3e688853ac6ec365fadc3445.zip
52392: use octal escape to match = without error messages from awk
Diffstat (limited to 'Src/makepro.awk')
-rw-r--r--Src/makepro.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/makepro.awk b/Src/makepro.awk
index f69660531..0d53c5850 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(/\075.*$/, "", dcltor)
match(dcltor, /^([^_0-9A-Za-z]| const )*/)
dcltor = substr(dcltor, 1, RLENGTH) "@+" substr(dcltor, RLENGTH+1)
match(dcltor, /^.*@\+[_0-9A-Za-z]+/)