check-missing-functions: avoid some more false-positives with negative-lookbehing
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Apr 2022 08:39:19 +0000 (10:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Apr 2022 08:39:19 +0000 (10:39 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/test/check-missing-functions

index c8a2b3dff0ed8256fa25cf4a6e4604d967cdd4fe..cb819fc2d11179691090676cd123233fbf55f37c 100755 (executable)
@@ -10,5 +10,5 @@ PRESENT=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
 LOCAL=$(awk 'BEGIN{ORS="|";} /^_/{ gsub(/\(\) {/, ""); print $0}' \
        ../acme.sh/dnsapi/dns*.sh | sed -r 's/\|$//')
 
-grep -P '\b_[a-zA-Z0-9_-]+ ' ../acme.sh/dnsapi/dns_*sh | \
+grep -P '(?<!["$])\b_[a-zA-Z0-9_-]+ ' ../acme.sh/dnsapi/dns_*sh | \
        grep -Ev "$PRESENT|$LOCAL|\b_[a-zA-Z0-9_-]+=|^../acme.sh/dnsapi/.*sh: *#"