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