ShellCheck-0.4.6: 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])] #

hasFlag :: Token -> [Char] -> Bool #

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] #

getTrailingUnquotedLiteral :: Token -> Maybe Token #

getGlobOrLiteralString :: Token -> Maybe String #

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

isLiteral :: Token -> Bool #

getWordParts :: Token -> [Token] #

braceExpand :: Token -> [Token] #

getCommand :: Token -> Maybe Token #

getCommandName :: Token -> Maybe String #

getCommandNameFromExpansion :: Token -> Maybe String #

getCommandBasename :: Token -> Maybe [Char] #

isAssignment :: Token -> Bool #

isOnlyRedirection :: Token -> Bool #

isFunction :: Token -> Bool #

isBraceExpansion :: Token -> Bool #

getCommandSequences :: Token -> [[Token]] #

getAssociativeArrays :: Token -> [String] #

data PseudoGlob #

Constructors

PGAny |
PGMany |
PGChar Char |

Instances

Eq PseudoGlob # |
Methods (==) :: PseudoGlob -> PseudoGlob -> Bool # (/=) :: PseudoGlob -> PseudoGlob -> Bool #
Show PseudoGlob # |
Methods showsPrec :: Int -> PseudoGlob -> ShowS # show :: PseudoGlob -> String # showList :: [PseudoGlob] -> ShowS #

wordToPseudoGlob :: Token -> Maybe [PseudoGlob] #

simplifyPseudoGlob :: [PseudoGlob] -> [PseudoGlob] #

pseudoGlobsCanOverlap :: [PseudoGlob] -> [PseudoGlob] -> Bool #

wordsCanBeEqual :: Token -> Token -> Bool #