mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 02:27:30 -07:00
Directives after the shebang now apply to the entire script.
Also adds support for the shell= directive.
This commit is contained in:
parent
6af1aeb259
commit
944313c6ba
3 changed files with 52 additions and 15 deletions
|
@ -129,7 +129,11 @@ data Token =
|
|||
| T_Include Id Token Token -- . & source: SimpleCommand T_Script
|
||||
deriving (Show)
|
||||
|
||||
data Annotation = DisableComment Integer | SourceOverride String deriving (Show, Eq)
|
||||
data Annotation =
|
||||
DisableComment Integer
|
||||
| SourceOverride String
|
||||
| ShellOverride String
|
||||
deriving (Show, Eq)
|
||||
data ConditionType = DoubleBracket | SingleBracket deriving (Show, Eq)
|
||||
|
||||
-- This is an abomination.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue