language-bash-0.6.0: Parsing and pretty-printing Bash shell scripts

Safe HaskellSafe-Inferred

Language.Bash.Expand

Description

Shell expansions.

Synopsis

Documentation

braceExpand :: Word -> [Word]Source

Brace expand a word.

data TildePrefix Source

A tilde prefix.

Constructors

Home
~/foo
UserHome String
~fred/foo
PWD
~+/foo
OldPWD
~-/foo
Dirs Int

~N, ~+N, ~-N

tildePrefix :: Word -> Maybe (TildePrefix, Word)Source

Strip the tilde prefix of a word, if any.

splitWord :: [Char] -> Word -> [Word]Source

Split a word on delimiters.