PowerShell是否具有与sh(和衍生物)的此命令构造等效的内容:
sh
$ cmd1 && cmd2
其中,cmd2仅在运行时cmd1退出成功地?
cmd2
cmd1
我知道你可以用分号组合命令.但是,这忽略了命令的退出状态.
shell powershell conditional powershell-2.0
conditional ×1
powershell ×1
powershell-2.0 ×1
shell ×1