Strange output from terminal `exit` command is this a virus?
Solution 1:
This seems to be a change to Bash Session
in OS X El Capitan. See Bash sessions
Also see this question in SE.
Solution 2:
had the same problem. Under terminal preferences->profiles -> shell. Select appropriate action to perform under "when the shell exits" menu. Fixed my issue.