This inspection highlights unresolved variables.
It’s disabled by default, because it’s still in beta status. You can enable it via Settings… → Editor → Inspections → BashSupport Pro → Unresolved variable (BETA) .
A variable is highlighted as unresolved under these conditions:
- it’s not previously declared in the file
- it’s not a built–in or predefined variable. For example
$PATHis a built-in variable and
$HOMEis a predefined variable.
The validation is currently not good–enough to enable this inspection by default. For example, conditional statements are not checked at this time.