无法提交化石 scm

Unable to commit with fossil scm

最近由于以下错误我无法提交:

$ fossil commit
$EDITOR './ci-comment-CEA221250987.txt'
Unsafe command string: $EDITOR './ci-comment-CEA221250987.txt'
              here ----^
Aborted (core dumped)

这是化石问题还是我的 .bashrc 中有一些恶意配置?


我的化石版本是

$ fossil version
This is fossil version 2.12.1 [b98ce23d4f] 2020-08-20 13:27:04 UT

$EDITOR

$ echo $EDITOR
vim

“化石设置编辑器”是怎么说的?你把它设置为 $EDITOR 了吗?别 去做。这是一种安全风险。出现错误是因为 Fossil 检测到 安全风险并拒绝继续。相反,将编辑器直接设置为“vim” 像这样:

fossil setting editor vim

或者,执行“fossil unset editor”,以便 VISUAL 和 EDITOR 环境变量 将在运行时进行咨询。

注意:在上面,您可能需要将 --global 选项添加到各种 “设置”和“取消设置”命令,以防您全局设置了“编辑器”。