Bash 自 MacOS 更新以来在新会话中打印不必要的内容

Bash printing unnecessary things on new session since MacOS update

下面一行在/etc/bashrc_Apple_Terminal

shell_session_history_enable() {
        (umask 077; touch "$SHELL_SESSION_HISTFILE_NEW") <<< THIS LINE
        HISTFILE="$SHELL_SESSION_HISTFILE_NEW"
        SHELL_SESSION_HISTORY=1
    }

在每个新会话中打印类似的内容。

/Users/me/.bash_sessions/717F6632-A946-44EE-8A27-2547EDDD09E9.historynew Stats {
  dev: 16777220,
  mode: 33152,
  nlink: 1,
  uid: 501,
  gid: 20,
  rdev: 0,
  blksize: 4096,
  ino: 1406878,
  size: 0,
  blocks: 0,
  atimeMs: 1502801769000,
  mtimeMs: 1502801769000,
  ctimeMs: 1502801769000,
  birthtimeMs: 1502801769000,
  atime: 2017-08-15T12:56:09.000Z,
  mtime: 2017-08-15T12:56:09.000Z,
  ctime: 2017-08-15T12:56:09.000Z,
  birthtime: 2017-08-15T12:56:09.000Z }

最近的时间是自上次 MacOS 更新以来。

在不更改我真的不想更改的文件的情况下解决此问题的优雅方法是什么?

这个post回答了我的问题

我不认为 touch 有别名的可能性,但事实确实如此。