Add a parser test for redirects without commands

* tests/parser.scm: Add the test.
This commit is contained in:
Timothy Sample 2018-07-11 20:32:19 -04:00
parent 0afb2523f7
commit 2f5d074ca3
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,10 @@
(<sh-exec> "exec"))
(parse "exec 3<&-"))
(test-equal "Parses redirects without a command"
'(<sh-with-redirects> ((>& 2 1)) #f)
(parse "2>&1"))
(test-equal "Parses assignments"
'(<sh-set!> (("FOO" "bar")))
(parse "FOO=bar"))