Shellcheck's source
directive for SC1090 should support either $HOME or ~tilde-expansion
#2914
Closed
1 of 2 tasks
For bugs
SC1090
shellcheck --version
or "online"):0.9.0
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
This is related to #507, but smaller in scope: instead of supporting analysis of such paths in the source, I'd like to at least see them handled in explicit source directives, such as the above.
At the moment, if I use a tilde in the directive (
source=~/.zsh/modules/wintermi/zsh-mise/zsh-mise.plugin.zsh
), I get SC1090, as if it didn't try to resolve it at all; and if I use an environment-variable (source=$HOME/.zsh/modules/wintermi/zsh-mise/zsh-mise.plugin.zsh
), I get told it can't be found:The text was updated successfully, but these errors were encountered: