[SC3028] In a if [ -n BASH_SOURCE ]
block don't warn of BASH_SOURCE being undefined
#3111
Open
4 tasks done
For bugs
shellcheck --version
or "online"): 0.10.0For new checks and feature suggestions
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
When I remove the comments it says:
Here's what I wanted or expected to see:
No error
FYI: Similar errors occur with pipefail:
The text was updated successfully, but these errors were encountered: