From cdc5988e45b09135f68073f8b7fdec92d6f58c86 Mon Sep 17 00:00:00 2001 From: Virgil Date: Thu, 9 May 2019 02:20:56 +1000 Subject: [PATCH] add reference to -latest command line option --source-path --- SC1090.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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