Skip to content
Vidar Holen edited this page Oct 4, 2015 · 2 revisions

Parsing of sourced file failed. Ignoring it.

Problematic code:

source mylib

Correct code:

# shellcheck disable=SC1094
source mylib

(or fix mylib)

Rationale:

ShellCheck encountered a parsing error in a sourced file, mylib in the example.

Fix parsing error, or just disable it with a directive.

Exceptions:

If the file is fine and this is due to a known shellcheck bug, you can ignore it with a directive as in the example.

ShellCheck

Each individual ShellCheck warning has its own wiki page like SC1000. Use GitHub Wiki's "Pages" feature above to find a specific one, or see Checks.

Clone this wiki locally