shellcheck
Verified for current stable LTS
Shellcheck Command: Check Sourced Scripts
Use for check sourced scripts with Shellcheck. Exact CLI syntax to check sourced scripts using Shellcheck.
When to use this: Use for check sourced scripts with Shellcheck.
Command Syntax
shellcheck -a <path/to/script.sh> shellcheck -a <path/to/script.sh> Command Breakdown
-a- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to check sourced scripts using Shellcheck.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Shellcheck Command: Adjust Severity Level
shellcheck -S <error|warning|info|style> <path/to/script.sh> Shellcheck Command: Check Shell Script shellcheck <path/to/script.sh> Shellcheck Command: Check Shell With Dialect shellcheck -s <sh|bash|dash|ksh> <path/to/script.sh> Shellcheck Command: Display Output Format shellcheck -f <tty|checkstyle|diff|gcc|json|json1|quiet> <path/to/script.sh> Shellcheck Command: Enable Optional Checks shellcheck -o <add-default-case,avoid-nullary-conditions,...> <path/to/script.sh>