显然,在执行时编辑 Linux shell 脚本会导致 undefined behavior .
在执行 PowerShell 脚本时编辑它会发生什么?
最佳答案
PowerShell 从上到下解析所有内容一次,再也不会返回。
一旦进入,它就在:)
例如,如果您需要重新加载 PowerShell 模块到当前 session 中,您必须使用 -Force 标志。
关于windows - 在运行时编辑 PowerShell 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60692684/