572 Bytes
Newer Older
Arnaud Blanchard's avatar
Arnaud Blanchard committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

Use bash option **-x** to show each bash execution

    bash -x
You will usually have to mush information. Active this option in your script only on the suspected bugging part.

    set -x #Active debbugging
    set +x #Stopping debugging

You can also use **-v** which will display all the input (stdin) of the script

Finaly you can stop the bash to replace meta characters with **-f** e.g. `ls *` really looks for `*`

See more: [Bash for beginners](