Directives after the shebang now apply to the entire script.

Also adds support for the shell= directive.
This commit is contained in:
Vidar Holen
2016-03-08 20:16:16 -08:00
parent 6af1aeb259
commit 944313c6ba
3 changed files with 52 additions and 15 deletions

View File

@@ -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.