相关疑难解决方法(0)

使用 -x 运行源命令进行调试

我试图了解 shell 脚本是如何工作的。该教程指出脚本应按以下方式运行:

source oe-init-build-env rpi-build
Run Code Online (Sandbox Code Playgroud)

通常在做这种研究时我会做sh -x oe-init-build-env rpi-build。然而,这种方法在这里不是最佳方法,因为它会在新的 shell 中运行脚本。

有没有办法用源代码运行脚本并将sh标志传递给它?

shell dash

4
推荐指数
1
解决办法
4378
查看次数

标签 统计

dash ×1

shell ×1