set -x
実行時に行を出力するためにスクリプトでこれを使用します。
そこにいくつかの説明を追加したいので、:
コマンドを使用しましたが、何もしません。
: :::: comment here
よさそうですが、すべての行に前に追加するよりも、他の行にも前に追加した方が良い:
でしょう。+
プラス記号を変更するには?
ベストアンサー1
PS4
シェル変数を設定できます。からman bash
:
PS4 The value of this parameter is expanded as with PS1 and the value is printed before each command bash displays during an execution trace. The first character of PS4 is replicated mul‐ tiple times, as necessary, to indicate multiple levels of indi‐ rection. The default is ``+ ''.