Skip to content

Commit

Permalink
fix cleanup of environment variables after user command (mintty#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed Apr 24, 2017
1 parent 74b7c0a commit 372e280
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/termclip.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,10 @@ term_cmd(char * cmdpat)

FILE * cmdf = popen(cmd, "r");
unsetenv("MINTTY_TITLE");
unsetenv("MINTTY_COMMAND");
unsetenv("MINTTY_OUTPUT");
unsetenv("MINTTY_SCREEN");
unsetenv("MINTTY_SELECTION");
unsetenv("MINTTY_SELECT");
unsetenv("MINTTY_BUFFER");
unsetenv("MINTTY_CWD");
unsetenv("MINTTY_PROG");
if (cmdf) {
Expand Down
1 change: 1 addition & 0 deletions wiki/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Font rendering and display handling
* Automatically disabling Uniscribe for ASCII-only chunks (mintty/wsltty#36).
* Fixed delayed scroll marker highlighting (#569).
* Fixed cleanup of environment variables after user command (#654).

### 2.7.6 (14 Apr 2017) ###

Expand Down

0 comments on commit 372e280

Please sign in to comment.