Problem description and reproduction
In terminal run:
shellcheck -x my_script
Where my_script
sources another (partial) script.
I get no error with the -x
switch, but if I run it without -x
:
shellcheck my_script
I get notification like this one:
. ./functions/my_function
^-- SC1091: Not following: ... was not specified as input (see shellcheck -x).
My ShellCheck
I'm working with self-compiled ShellCheck located in:
~/.cabal/bin/shellcheck
Goal
I'm working with Visual Studio Code GUI text editor. Is there a way to force the -x
switch in there somewhere or other solution?