【问题标题】:Display the command that is being executed in cshell在 cshell 中显示正在执行的命令
【发布时间】:2020-05-06 07:45:36
【问题描述】:

我正在使用 csh 来显示正在执行的命令。

我可以看到 set -x 之类的东西放在脚本的开头。但它似乎只适用于 bash。在 cshell 中我收到以下错误。

set: Variable name must begin with a letter.
Failed

有什么方法可以显示在 cshell 中正在执行的命令。请帮忙!

【问题讨论】:

    标签: csh


    【解决方案1】:

    您可以使用csh -v 运行您的 c-shell 脚本。这将在执行之前显示脚本的每一行。这对于调试 c-shell 脚本很有用。

    【讨论】:

      猜你喜欢
      • 2016-07-25
      • 1970-01-01
      • 2011-10-26
      • 2023-01-27
      • 2020-08-21
      • 1970-01-01
      • 2018-07-04
      • 2018-02-03
      • 2013-08-02
      相关资源
      最近更新 更多