elvish/pkg/eval
Qi Xiao 09b8dcdf2f Handle the global namespace correctly in the -source command.
The -source command now runs with a temporary namespace that is amalgamated
from the local and up namespace of the caller -source; this means that it can
no longer mutate its caller's local scope, which is the only possible sensible
behavior anyway.

This fixes #1202.
2021-01-03 22:31:55 +00:00
..
errs pkg/eval/errs: Change OutOfRange.Valid{Low High} to strings. 2020-08-18 21:23:26 +01:00
evaltest pkg/eval: Remove (*Evaler).Close. 2021-01-03 20:55:04 +00:00
mods Fix Windows build. 2020-12-25 17:58:03 +00:00
vals Fix typos found by codespell 2020-10-10 22:47:50 +01:00
vars [cleanup] trivial golint suggested changes 2020-12-25 01:11:33 +00:00
args_walker.go pkg/parse: Turn most public methods of Node into functions. 2020-04-25 18:55:44 +01:00
benchmarks_test.go pkg/eval: Remove (*Evaler).Close. 2021-01-03 20:55:04 +00:00
builtin_fn_cmd_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
builtin_fn_cmd_unix_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
builtin_fn_cmd_unix.go Change signature of "exec" and "fg" on Windows to match that on Unix. 2020-12-26 22:59:18 +00:00
builtin_fn_cmd_windows.go Change signature of "exec" and "fg" on Windows to match that on Unix. 2020-12-26 22:59:18 +00:00
builtin_fn_cmd.go pkg/eval: Move elvdoc comments before the implementations. 2020-08-16 18:46:29 +01:00
builtin_fn_container_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
builtin_fn_container.go Implement namespaces using slices instead of maps. 2020-12-25 17:46:46 +00:00
builtin_fn_debug.go pkg/eval: Use exported methods to access ports from builtin functions. 2020-10-10 22:28:13 +01:00
builtin_fn_env_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
builtin_fn_env.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
builtin_fn_flow_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
builtin_fn_flow.go pkg/eval: Cause -> Reason. 2020-09-04 21:04:58 +01:00
builtin_fn_fs_test.go pkg/eval/evaltest: Move Must* functions to the testutil package. 2020-09-04 21:57:20 +01:00
builtin_fn_fs.go pkg/eval: Use exported methods to access ports from builtin functions. 2020-10-10 22:28:13 +01:00
builtin_fn_io_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
builtin_fn_io.go pkg/eval: Break up value.go. 2020-10-10 22:28:13 +01:00
builtin_fn_misc_test.go Handle the global namespace correctly in the -source command. 2021-01-03 22:31:55 +00:00
builtin_fn_misc_unix_test.go Deflake the test against "sleep" by delaying the SIGINT slightly. 2021-01-02 01:49:40 +00:00
builtin_fn_misc.go Handle the global namespace correctly in the -source command. 2021-01-03 22:31:55 +00:00
builtin_fn_num_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
builtin_fn_num.go Fix typos found by codespell 2020-10-10 22:47:50 +01:00
builtin_fn_pred_test.go Fix typos found by codespell 2020-10-10 22:47:50 +01:00
builtin_fn_pred.go pkg/eval: Update doc of the "not" command. 2020-12-25 17:46:09 +00:00
builtin_fn_str_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
builtin_fn_str.go pkg/eval: Use exported methods to access ports from builtin functions. 2020-10-10 22:28:13 +01:00
builtin_fn_styled_test.go In prompts implicitly coerce float64 to string 2020-12-25 17:34:49 +00:00
builtin_fn_styled.go Trivial documentation consistency change 2020-12-25 17:43:32 +00:00
builtin_ns.go Implement namespaces using slices instead of maps. 2020-12-25 17:46:46 +00:00
builtin_special_test.go Fix definition of recursive functions with fn. 2021-01-03 20:44:52 +00:00
builtin_special.go pkg/eval: Remove (*Frame).Eval. 2021-01-03 20:54:35 +00:00
callable.go pkg/eval: Break up value.go. 2020-10-10 22:28:13 +01:00
chdir_test.go Improve navigation mode corner cases 2020-11-07 13:17:00 -05:00
chdir.go pkg/util: Move environment variable names to a new package. 2020-08-16 14:12:48 +01:00
closure_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
closure.go Implement namespaces using slices instead of maps. 2020-12-25 17:46:46 +00:00
compile_effect_test.go Fix hang reading value channel from a redirection 2020-11-07 13:52:29 -05:00
compile_effect_unix_test.go pkg/eval/evaltest: Move Must* functions to the testutil package. 2020-09-04 21:57:20 +01:00
compile_effect.go pkg/eval: Deduplicate code for command head resolution. 2020-12-25 21:30:57 +00:00
compile_lvalue_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
compile_lvalue.go pkg/eval: Various cleanups for qname handling code. 2020-12-25 22:31:52 +00:00
compile_value_test.go pkg/eval/evaltest: Move Must* functions to the testutil package. 2020-09-04 21:57:20 +01:00
compile_value.go pkg/eval: Implement output capture in terms of simpler primitives. 2021-01-02 01:40:04 +00:00
compiler.go pkg/eval: Add a (*Evaler).Call method for calling a function. 2021-01-03 18:57:11 +00:00
deprecation.go pkg/eval: Support eval-time deprecation warning. 2020-04-26 01:13:05 +01:00
editor.go Move all libraries to new pkg/. 2019-12-23 20:00:59 +00:00
env_list.go pkg/eval: De-export EnvList. 2020-09-04 22:24:24 +01:00
eval_internal_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
eval_test.go pkg/eval: Add a (*Evaler).Call method for calling a function. 2021-01-03 18:57:11 +00:00
eval.go pkg/eval: Remove (*Evaler).Close. 2021-01-03 20:55:04 +00:00
exception_test.go pkg/eval: Cause -> Reason. 2020-09-04 21:04:58 +01:00
exception_unix_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
exception.go pkg/eval: Minor godoc edits. 2020-09-04 22:10:47 +01:00
external_cmd_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
external_cmd_unix_test.go pkg/eval: Move EachExternal to the fsutil package. 2020-09-04 22:04:20 +01:00
external_cmd_windows_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
external_cmd.go Fix typos found by codespell 2020-10-10 22:47:50 +01:00
frame.go pkg/eval: Remove (*Frame).Eval. 2021-01-03 20:54:35 +00:00
glob_test.go pkg/eval/evaltest: Move Must* functions to the testutil package. 2020-09-04 21:57:20 +01:00
glob.go [cleanup] trivial golint suggested changes 2020-12-25 01:11:33 +00:00
go_fn_test.go pkg/eval: De-export GoFn. 2020-09-04 22:30:42 +01:00
go_fn.go Fix typos found by codespell 2020-10-10 22:47:50 +01:00
interrupts.go pkg/eval: Remove (*Evaler).EvalInTTY. 2020-04-16 00:11:23 +01:00
must.go pkg: Fix small issues found by staticcheck. 2020-04-13 13:56:10 +01:00
ns_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
ns.go Implement namespaces using slices instead of maps. 2020-12-25 17:46:46 +00:00
options_test.go Increase options.go coverage to 100% 2020-08-26 20:40:22 +01:00
options.go pkg: Move camel_to_dashed from util/ to strutil/. 2020-09-03 05:10:59 +01:00
port_helper_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
port_helper.go pkg/eval: Remove (*Evaler).EvalInTTY. 2020-04-16 00:11:23 +01:00
port.go pkg: Move edit.capturePort to eval.CaptureStringPort. 2021-01-02 02:39:03 +00:00
process_unix.go Move all libraries to new pkg/. 2019-12-23 20:00:59 +00:00
process_windows.go Move all libraries to new pkg/. 2019-12-23 20:00:59 +00:00
purely_eval_test.go Implement namespaces using slices instead of maps. 2020-12-25 17:46:46 +00:00
purely_eval.go pkg/eval: Add a (*Evaler).Call method for calling a function. 2021-01-03 18:57:11 +00:00
pwd_test.go Fix the $pwd tests 2020-10-28 19:36:01 -04:00
pwd.go Fix the $pwd tests 2020-10-28 19:36:01 -04:00
resolve_test.go Implement namespaces using slices instead of maps. 2020-12-25 17:46:46 +00:00
resolve.go pkg/eval: Various cleanups for qname handling code. 2020-12-25 22:31:52 +00:00
state.go Move all libraries to new pkg/. 2019-12-23 20:00:59 +00:00
value_helper.go pkg/eval: Rewrite the lvalue parsing code. 2020-08-20 13:15:00 +01:00
value_test.go go vet cleanup 2020-09-03 04:24:06 +01:00
var_parse_test.go pkg/eval: Various cleanups for qname handling code. 2020-12-25 22:31:52 +00:00
var_parse.go pkg/eval: Various cleanups for qname handling code. 2020-12-25 22:31:52 +00:00
var_ref.go pkg/eval: Various cleanups for qname handling code. 2020-12-25 22:31:52 +00:00