diff --git a/reader.cpp b/reader.cpp index ba50cd98c..b2f2b4a6b 100644 --- a/reader.cpp +++ b/reader.cpp @@ -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)