I don't think that I have seen this before, but whenever I run exit
in terminal I get a very strange output.
This is what it looks like:
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
And when I remove ~/.bash_sessions
I get this output.
logout
Saving session...-bash: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.session: No such file or directory
touch: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.historynew: No such file or directory
-bash: history: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.historynew: cannot create: No such file or directory
...copying shared history...cp: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.history: No such file or directory
...saving history...cat: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.historynew: No such file or directory
-bash: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.history: No such file or directory
-bash: ~/.bash_sessions/EBDD3E18-8D29-42DA-B32C-DD4491951FC0.historynew: No such file or directory
truncating history files...
...completed.
shlock: open(~/.bash_sessions/shlock6026): No such file or directory
[Process completed]
The other thing is it recreates the .bash_sessions
folder if it got removed.
Is this some kind of virus or just that I haven't paid that much attention to it, or is this something that Apple added in El Capitan (I'm running OS X 10.11 Build 15A262E) or what else could it be?
Also when I run login <myusername>
then I run exit
I do not get this odd output. It only seems to be when closing out of terminal.
Note: I have replaced /Users/myusername
with ~/
instead. I have also removed my .bash_profile to make sure it wasn't that.