mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-27 03:51:22 -03:00
change order of env_set() args
It's bugged me forever that the scope is the second arg to `env_get()` but not `env_set()`. And since I'll be introducing some helper functions that wrap `env_set()` now is a good time to change the order of its arguments.
This commit is contained in:
@@ -473,7 +473,7 @@ parse_execution_result_t parse_execution_context_t::run_for_statement(
|
||||
}
|
||||
|
||||
const wcstring &val = argument_sequence.at(i);
|
||||
env_set(for_var_name, val.c_str(), ENV_LOCAL);
|
||||
env_set(for_var_name, ENV_LOCAL, val.c_str());
|
||||
fb->loop_status = LOOP_NORMAL;
|
||||
|
||||
this->run_job_list(block_contents, fb);
|
||||
|
||||
Reference in New Issue
Block a user