Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Bash conditional commands.
- data CondExpr a
- data UnaryOp
- data BinaryOp
- parseTestExpr :: [String] -> Either ParseError (CondExpr String)
Documentation
Bash conditional expressions.
Unary conditional operators.
BlockFile | -b |
CharacterFile | -c |
Directory | -d |
FileExists |
|
RegularFile | -f |
SetGID | -g |
Sticky | -k |
NamedPipe | -p |
Readable | -r |
FileSize | -s |
Terminal | -t |
SetUID | -u |
Writable | -w |
Executable | -x |
GroupOwned | -G |
SymbolicLink |
|
Modified | -N |
UserOwned | -O |
Socket | -S |
Optname | -o |
Varname | -v |
ZeroString | -z |
NonzeroString |
|
Binary conditional operators.
parseTestExpr :: [String] -> Either ParseError (CondExpr String) Source #
Parse a conditional expression for the Bash test
builtin.