wordexp-0.2.0.0: wordexp(3) wrappers

Safe HaskellNone

System.Wordexp

Contents

Description

wordexp (and wordfree) Haskell wrapper

Synopsis

Wrapper

wordexp :: Flags -> String -> IO (Either WordexpError [String])Source

wordexp wrapper

Allows to specify desired flags, return expanded strings or encountered error if any

Flags

data Flags Source

wordexp flags

Not every flag is supported since some of them do not make much sense in Haskell anyway

nosubst :: FlagsSource

Disable command substitution in patterns, treat them as errors

errors :: FlagsSource

Do not hide shell error messages in devnull, print them right away

noundef :: FlagsSource

Do not accept undefined shell variables, treat them as errors

Errors