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

Safe HaskellSafe
LanguageHaskell98

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.