diff options
author | Ben Hamilton <foxden@gmail.com> | 2015-01-16 11:54:31 -0800 |
---|---|---|
committer | Ben Hamilton <beng@fb.com> | 2015-01-16 11:57:26 -0800 |
commit | b31305b9bd599e04077f0f0bcd701fc87910a2f5 (patch) | |
tree | 047524cd175ab93a12a7871df494b37f02a304ef /reader.cpp | |
parent | d4eded2376706c67b680ad522e61cbe54d8214b0 (diff) |
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]
Diffstat (limited to 'reader.cpp')
-rw-r--r-- | reader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |