#1029223 lintian: bash-term-in-posix-shell false positive, triggers on "function" in an embedded awk script

#1029223#5
Date:
2023-01-19 23:24:14 UTC
From:
To:
Lintian, when reviewing libreswan 4.9-1, reports:

I: libreswan: bash-term-in-posix-shell 'function cool(' [usr/libexec/ipsec/_secretcensor:31]

But in fact the code in question is:
------
awk '	function cool(hot,   q, cooled, run) {
		# warning:  may destroy input line!
		q = "'"'"'"	# single quote
		if (hot ~ q)
------

That is, the code is not a bashism, but rather an input to awk.

This is a false positive.