Commit Graph

17 Commits

Author SHA1 Message Date
Cheer Xiao
80060cc269 eval: Let builtin implementations return a string 2013-10-02 22:44:28 +08:00
Cheer Xiao
e859c76275 main: Use heuristics to suppress excessive state update messages 2013-10-02 22:42:08 +08:00
Cheer Xiao
5e7e5caadd eval: Use a channel of StateUpdate to keep track of command states.
This is more generic than returning pids, and is suitable for builtins.
2013-10-02 19:25:25 +08:00
Cheer Xiao
e0cf2dd5c8 Implement reader with timeout using syscall.Select instead
The old implementation is not correct since it always tries to read one more
rune and os.Stdin is shared with forked subprocesses
2013-09-27 12:19:06 +08:00
Cheer Xiao
13189cf58d async: Take timeout each time RuneReader reads rune 2013-09-23 16:29:01 +08:00
Cheer Xiao
85ed89f64b Revamp async.RuneReader 2013-09-22 18:49:37 +08:00
Cheer Xiao
f2d35b8c39 Evaluate pipeline. Pipes are not yet connected. 2013-09-19 13:20:55 +08:00
Cheer Xiao
70534cd80a main: Cosmetics 2013-09-18 22:58:50 +08:00
Cheer Xiao
0789faf57f eval: Move evaluation & execution into package eval 2013-09-18 22:51:48 +08:00
Cheer Xiao
92eb05b488 main: Fix unclosed fds when doing filename redir 2013-09-18 19:55:18 +08:00
Cheer Xiao
5c045fbd0f main: Print pid at startup to aid debugging 2013-09-18 19:53:07 +08:00
Cheer Xiao
8ec1a90f33 parse: Parse a pipeline
das only executes the first command now.
2013-09-18 19:46:34 +08:00
Cheer Xiao
18d1e9bf40 parse: Cleanup, docs 2013-09-18 19:14:13 +08:00
Cheer Xiao
6c99d83787 main: Remove outdated func usage 2013-09-18 17:56:07 +08:00
Cheer Xiao
eca1bbca1f main: add envAsMap, in symmetry with envAsSlice 2013-09-18 17:54:32 +08:00
Cheer Xiao
1e777d6807 Package editor -> edit 2013-09-18 16:42:10 +08:00
Cheer Xiao
4f931c52cb Simplify source tree 2013-09-18 16:40:47 +08:00