knrafto / language-bash

Parse and pretty-print Bash shell scripts
BSD 3-Clause "New" or "Revised" License
35 stars 9 forks source link

Redirection not supported. #2

Closed Magicloud closed 10 years ago

Magicloud commented 10 years ago
Prelude> :m + Language.Bash.Parse
Prelude Language.Bash.Parse> parse "Test" "ls > log"
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package bytestring-0.10.4.0 ... linking ... done.
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package mtl-2.1.2 ... linking ... done.
Loading package text-1.1.0.0 ... linking ... done.
Loading package parsec-3.1.5 ... linking ... done.
Loading package pretty-1.1.1.1 ... linking ... done.
Loading package language-bash-0.3.0 ... linking ... done.
Left "Test" (line 1, column 6):
unexpected ">"
expecting redirection, |, |&, &&, ||, list terminator or pipeline
knrafto commented 10 years ago

Oops. Thanks for reporting.