Qi Xiao
|
d6604abec3
|
Add tests for builtins.
|
2016-10-14 00:06:03 +08:00 |
|
Qi Xiao
|
fb0731558a
|
Add a blackhole; renames.
This fixes #276.
|
2016-10-13 23:44:28 +08:00 |
|
Qi Xiao
|
5dd62563ce
|
Fix test cases.
|
2016-10-13 23:11:18 +08:00 |
|
Qi Xiao
|
1e6ee5c290
|
eval: Evaler.Eval -> .eval, .EvalInteractive -> .Eval.
|
2016-10-13 21:36:55 +08:00 |
|
Qi Xiao
|
84ce58494e
|
Fix unclosed pipes.
This fixes #274.
|
2016-10-13 21:09:37 +08:00 |
|
Qi Xiao
|
1650b823f1
|
Add builtin from-lines.
|
2016-10-13 19:47:50 +08:00 |
|
Qi Xiao
|
4fb3cab772
|
into-lines -> to-lines
|
2016-10-13 19:40:36 +08:00 |
|
Qi Xiao
|
fe82fb63a1
|
Test against 0x numbers in numerical builtins.
|
2016-10-13 19:30:32 +08:00 |
|
Qi Xiao
|
9ba96689cd
|
Fix test case for wcswidth.
|
2016-10-13 18:09:09 +08:00 |
|
Qi Xiao
|
3e2ecce55c
|
eval: Arrange builtins and add tests.
|
2016-10-13 18:07:08 +08:00 |
|
Qi Xiao
|
4d7d8d8911
|
util.RootStar -> FullNames
|
2016-10-13 17:02:42 +08:00 |
|
Qi Xiao
|
941ce30c73
|
Fix test case for unpack.
|
2016-10-13 15:49:10 +08:00 |
|
Qi Xiao
|
12fb85f014
|
Fix test case.
|
2016-10-11 21:48:36 +08:00 |
|
Qi Xiao
|
e56e54307e
|
Fix test cases for equality test builtins.
|
2016-10-11 11:57:26 +08:00 |
|
Qi Xiao
|
a7c4667b8d
|
Add a generic comparison operator "eq".
|
2016-10-11 11:42:59 +08:00 |
|
Qi Xiao
|
f8c419a967
|
Add builtins for comparing strings.
This fixes #238.
|
2016-10-10 01:35:03 +08:00 |
|
Qi Xiao
|
b8b94ba93d
|
The == builtin now treats args as numbers.
|
2016-10-10 01:35:02 +08:00 |
|
Qi Xiao
|
45ae52a449
|
The println builtin is now called echo.
|
2016-09-22 12:24:00 +02:00 |
|
Qi Xiao
|
1e07108639
|
eval: Test return values in eval_test.go.
|
2016-09-15 20:31:20 +02:00 |
|
Qi Xiao
|
0b854da23e
|
Fix broken test.
|
2016-09-15 20:11:12 +02:00 |
|
Qi Xiao
|
6f7f13f1f0
|
Fix broken test.
|
2016-09-10 00:54:18 +02:00 |
|
Qi Xiao
|
4738967962
|
Fix the try control structure; add tests.
|
2016-08-03 20:16:41 +02:00 |
|
Qi Xiao
|
1faee61c9e
|
Include command names when reporting non-zero exit status of external commands.
|
2016-07-25 17:50:19 +02:00 |
|
Qi Xiao
|
c8f4f9dcdb
|
Make ?() capture boolean exit.
This fixes #194.
|
2016-07-12 22:48:49 +02:00 |
|
Qi Xiao
|
a32294620b
|
Fix test cases.
|
2016-07-12 22:45:13 +02:00 |
|
Qi Xiao
|
c0a3ab9eee
|
Separate boolean return value and exception.
This fixes #189.
|
2016-07-08 01:03:34 +02:00 |
|
Qi Xiao
|
83235e13d0
|
Enable exception tracebacks; assign variables to "" when assignment fails.
This fixes #176.
|
2016-06-22 00:57:32 +02:00 |
|
Qi Xiao
|
ef5cf8e037
|
Allow * ^ < > as command names.
This fixes #188.
|
2016-06-21 15:23:32 +00:00 |
|
Qi Xiao
|
43ccd121c3
|
Support temporary assignment (var=val cmd ).
|
2016-03-31 05:13:39 +02:00 |
|
Qi Xiao
|
f3635715c9
|
Add a Pipe type.
This fully resolves #10.
|
2016-03-29 08:44:17 +02:00 |
|
Qi Xiao
|
504e0de9ed
|
eval: Support redir from File object.
|
2016-03-29 08:27:08 +02:00 |
|
Qi Xiao
|
613cb73294
|
Remove put-all and merge-to-chan.
|
2016-03-19 03:14:43 +01:00 |
|
Qi Xiao
|
8eaf1541ab
|
Many builtins now accept inputs from the argument.
|
2016-03-19 03:11:54 +01:00 |
|
Qi Xiao
|
079e835495
|
Most builtins using chan input now accepts byte pipe input as well.
This addresses #156.
|
2016-03-16 18:30:36 +01:00 |
|
Qi Xiao
|
4c938c7393
|
Support positional variables like $0 and $-1.
This fixes #159.
|
2016-03-10 20:42:32 +01:00 |
|
Qi Xiao
|
e2122bd142
|
fix fix
|
2016-03-08 19:03:57 +01:00 |
|
Qi Xiao
|
f061c8e4c2
|
Fix eawk's delimiter.
|
2016-03-08 13:12:44 +01:00 |
|
Qi Xiao
|
1638370417
|
[a b;c d] desugars to [[a b] [c d]]
|
2016-03-08 02:01:58 +01:00 |
|
Qi Xiao
|
cd8ca4f851
|
Ditch each-line in favor of "eawk".
|
2016-03-06 21:15:43 +01:00 |
|
Qi Xiao
|
4353d12bbe
|
Have each-line treat delimiter as regular expression.
|
2016-03-06 20:25:47 +01:00 |
|
Qi Xiao
|
4ba69d38c5
|
Change each-line to take a delimiter as the first arg.
|
2016-03-06 20:18:53 +01:00 |
|
Qi Xiao
|
79f74cf096
|
New builtin each-line.
Now there is an awk in elvish.
|
2016-03-06 20:05:05 +01:00 |
|
Qi Xiao
|
3fb9602764
|
Make the builtin namespace a fixed global.
|
2016-02-27 23:43:54 +01:00 |
|
Qi Xiao
|
00290a6f2b
|
Implement rest arg for function.
This fixes #83.
|
2016-02-26 01:54:27 +01:00 |
|
Qi Xiao
|
9f4a6413c1
|
Support variadic assignment.
This fixes #84.
|
2016-02-26 01:10:16 +01:00 |
|
Qi Xiao
|
cea7d7675c
|
Implement an "all" modifier for wildcards; fix tests.
|
2016-02-23 02:45:35 +01:00 |
|
Qi Xiao
|
6fbadd6f31
|
Add a builtin namespace. Now this is really Pythonic.
The "acme" builtin module finally works.
|
2016-02-22 22:56:23 +01:00 |
|
Qi Xiao
|
9793da932c
|
Add a "base" builtin.
|
2016-02-22 02:28:28 +01:00 |
|
Qi Xiao
|
ff6a2d025a
|
Fix failing tests.
|
2016-02-21 23:59:44 +01:00 |
|
Qi Xiao
|
edc901b99f
|
Fix broken test.
|
2016-02-21 18:28:19 +00:00 |
|