1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-18 15:21:16 +02:00

44637: = doesn't need quoting in awk regexp.

Known to cause warnings in gawk 5.
This commit is contained in:
Shlomi Fish 2019-08-03 08:53:05 +03:00 committed by Peter Stephenson
parent 5fd80faf98
commit 90fa6ee042
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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]+/)