Add a parser test for redirects without commands
* tests/parser.scm: Add the test.
This commit is contained in:
parent
0afb2523f7
commit
2f5d074ca3
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue