如何在bash中取消设置“!::”环境变量?


0

我有一个失败的构建脚本,因为它尝试unset调用一个环境变量!::。那失败了:

$ unset -v '!::'
sh: unset: `!::': not a valid identifier

我如何取消设置该变量?这是在Windows上(MSYS)。

Answers:


2

啊哈,我找到了答案:

env --unset='!::'
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.