mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 05:03:46 +08:00
Unexport CMD_DURATION
Valid uses of this environment variable don't really include passing it to subsequent child processes. I confirmed the fix with: function fish_prompt echo "cmd duration [$CMD_DURATION] " end cmd duration [0] sleep 2 cmd duration [2002]
This commit is contained in:
parent
d4eded2376
commit
b31305b9bd
|
@ -2508,7 +2508,7 @@ void set_env_cmd_duration(struct timeval *after, struct timeval *before)
|
|||
}
|
||||
|
||||
swprintf(buf, 16, L"%d", (secs * 1000) + (usecs / 1000));
|
||||
env_set(ENV_CMD_DURATION, buf, ENV_EXPORT);
|
||||
env_set(ENV_CMD_DURATION, buf, ENV_UNEXPORT);
|
||||
}
|
||||
|
||||
void reader_run_command(parser_t &parser, const wcstring &cmd)
|
||||
|
|
Loading…
Reference in New Issue
Block a user