diff --git a/SC1090.md b/SC1090.md index 77d02de..eccdf3a 100644 --- a/SC1090.md +++ b/SC1090.md @@ -22,3 +22,18 @@ Use a [[Directive]] to point shellcheck to a fixed location it can read instead. ### Exceptions: If you don't care that ShellCheck is unable to account for the file, specify `# shellcheck source=/dev/null`. + + +*** + +### 🚧 In [`shellcheck-latest`](https://shellcheck.storage.googleapis.com/index.html): + +⚠️ this section references [functionality](https://github.com/koalaman/shellcheck/commit/301705edea829c5153c43bf52215d09b5e00d182) not yet in the **`stable`** release. + +#### shellcheck -P *SOURCEPATH*, --source-path=*SOURCEPATH* + +`shellcheck -P dir1:dir2/libs` + +Specify paths to search for sourced files, separated by `:` on Unix and `;` on Windows. Absolute paths will also be rooted in these. + +The special path ***`SCRIPTDIR`*** can be used to specify searching the currently checked script's directory, as in **`-P SCRIPTDIR`** or **`-P SCRIPTDIR/../libs`**. Subsequent `-P` flags accumulate and take precedence. \ No newline at end of file