Instance env_set_argv and env_set_pwd

This commit is contained in:
ridiculousfish
2018-09-10 19:17:44 -07:00
parent 5055621e02
commit ede66ccaac
7 changed files with 24 additions and 22 deletions

View File

@@ -787,7 +787,7 @@ static bool exec_block_or_func_process(parser_t &parser, std::shared_ptr<job_t>
function_block_t *fb =
parser.push_block<function_block_t>(p, func_name, props->shadow_scope);
function_prepare_environment(func_name, p->get_argv() + 1, inherit_vars);
function_prepare_environment(parser.vars(), func_name, p->get_argv() + 1, inherit_vars);
parser.forbid_function(func_name);
internal_exec_helper(parser, props->parsed_source, props->body_node, io_chain, j);