我认为我以前从未见过,但是每当我exit
在终端中运行时,我都会得到一个非常奇怪的输出。
看起来是这样的:
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
当我删除时~/.bash_sessions
,得到此输出。
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]
另一件事是,.bash_sessions
如果文件夹被删除,它将重新创建该文件夹。
这是某种病毒,还是我没有对此给予太多关注,还是Apple在El Capitan(我正在运行OS X 10.11 Build 15A262E)中添加的某种病毒,或者还有其他可能吗?
同样,当我跑步login <myusername>
然后跑步时,exit
我不会得到这个奇怪的输出。似乎只有在关闭终端时才出现。
注:我已经更换/Users/myusername
与~/
替代。我还删除了.bash_profile,以确保不是那样。