Why you should care
$$ is used to making temporary names with the process ID in KSH. It allows for the name to be unique to the process.
Business Impacts
$$ prevents risks and is helpful in making KSH code more productive by giving it more uniqueness.
CAST Recommendations
References
https://stackoverflow.com/questions/1846802/in-kornshell
How we detect
This code insight shows that $$ gives the process number of the script being executing. It is also important to always tag tmp file name with this number.
About CAST and Highlight’s Code Insights
Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.