From 1e276ab4cf8148c8cba83d6b23119efe3597e2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Hurtado?= Date: Mon, 20 Apr 2020 10:38:54 +0200 Subject: [PATCH] Complete documentation with an explanation of set -x in script tricks --- docs/source/examples/shell_tricks.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/source/examples/shell_tricks.rst b/docs/source/examples/shell_tricks.rst index 5ba7720..a0ebfde 100644 --- a/docs/source/examples/shell_tricks.rst +++ b/docs/source/examples/shell_tricks.rst @@ -24,3 +24,11 @@ Calling with :program:`curl`: $ curl -v http://localhost:8080/parallel/10.0.0.1/10.10.10.1 +Script debugging +---------------- + +Bash provides the ``set -x`` builtin command that "After expanding each simple command, +for command, case command, select command, or arithmetic for command, display the +expanded value of PS4, followed by the command and its expanded arguments or associated +word list". This feature can be used to help debugging the `.pow` scripts and, together +the ``--debug`` option in the server sub-command, the scripts executed in user requests.