打开set -x,看到它执行的是history -a
bash: history: : cannot create: No such file or directory
打开set -x,看到它执行的是history -a
bash: history: : cannot create: No such file or directory
应该是我把 HISTFILE 关了导致的。
$ vi ~/.profile
declare -x HISTFILE=""
这样关有什么不对吗?