[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Package: lintian
Version: 2.116.0
Control: affects -1 + libreswan

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.

     --dkg

Attachment: signature.asc
Description: PGP signature


Reply to: