以下是重现它的方法:
echo 'the original file' > orig
ln -s orig symb # now symb is symlinked to orig
cat symb > orig # this makes orig an EMPTY FILE, but why?
Run Code Online (Sandbox Code Playgroud)
orig
在第三个命令之后变成一个空文件,但为什么呢?
我知道我可以用来unset -f $FUNCTION_NAME
在 bash / zsh 中取消设置单个函数,但是如何取消设置所有函数?