ShellCheck-0.4.1: Shell script analysis tool

Safe Haskell | None
Language | Haskell98

ShellCheck.ASTLib

# Documentation

isLoop :: Token -> Bool

willSplit :: Token -> Bool

isGlob :: Token -> Bool

isConstant :: Token -> Bool

isEmpty :: Token -> Bool

oversimplify :: Token -> [[Char]]

getFlagsUntil :: ([Char] -> Bool) -> Token -> [(Token, [Char])]

getAllFlags :: Token -> [(Token, [Char])]

getLeadingFlags :: Token -> [(Token, [Char])]

bracedString :: Token -> [Char]

isArrayExpansion :: Token -> Bool

mayBecomeMultipleArgs :: Token -> Bool

willBecomeMultipleArgs :: Token -> Bool

willConcatInAssignment :: Token -> Bool

getLiteralString :: Token -> Maybe String

onlyLiteralString :: Token -> String

getUnquotedLiteral :: Token -> Maybe [Char]

getGlobOrLiteralString :: Token -> Maybe String

getLiteralStringExt :: (Token -> Maybe String) -> Token -> Maybe String

isLiteral :: Token -> Bool

getWordParts :: Token -> [Token]

braceExpand :: Token -> [Token]

getCommandName :: Token -> Maybe String

getCommandBasename :: Token -> Maybe [Char]

isAssignment :: Token -> Bool

getCommandSequences :: Token -> [[Token]]