Commit Graph

8 Commits

Author SHA1 Message Date
Qi Xiao
f49cf9f80e pkg/eval: More tests, especially against error cases.
Also fix a bug in handling redirections from invalid types.

This addresses #944.
2020-03-31 04:58:42 +01:00
Qi Xiao
a3adcbf11e Add a test for #754.
The test now fails with "go test -race".
2020-01-14 08:13:49 -05:00
Qi Xiao
4fb04bc27a pkg/eval: Catch index write access to nonexistent variables.
This fixes #889.
2020-01-12 08:23:37 -05:00
Qi Xiao
5550819ac0 pkg/eval: Check FD when using it as redir source.
This fixes #788.
2020-01-12 00:42:18 +00:00
Qi Xiao
64b104f533 Support dynamic command names for unambiguous external commands.
This fixes #764.
2020-01-11 18:57:39 +00:00
Qi Xiao
8cf6cc0747 pkg/eval: Add test for background job. 2020-01-08 23:29:00 +00:00
Qi Xiao
ca945dcb7f pkg/eval: TestCase.Errors{With,} -> Throws{,Any}.
This is in preparation for supporting compilation errors. Also did some
cleanups.
2020-01-08 23:09:19 +00:00
Qi Xiao
e45fdf7228 Move all libraries to new pkg/. 2019-12-23 20:00:59 +00:00