/TySh

Typed Shell with structured data representation.

Primary LanguageHaskell

TySh

Typed Shell with structured data representation.

Useful links

Parsing

Example

TySh> cd /tmp
Pipe [Command "cd" ["/tmp"] []]

TySh> pwd
Pipe [Command "pwd" [] []]
/tmp

TySh> date | tr a-z A-Z
Pipe [Command "date" [] [],Command "tr" ["a-z","A-Z"] []]
TUE DEC  4 23:40:30 CET 2012

TySh> get PATH | xargs -n1 | tr a-z A-Z
Pipe [Command "get" ["PATH"] [],Command "xargs" ["-n1"] [],Command "tr" ["a-z","A-Z
/CHALMERS/USERS/-----/.CABAL/BIN
/BIN
/USR/BIN
/USR/SBIN
...

TySh> set PS1 shell>
Pipe [Command "set" ["PS1","shell>"] []]

shell>