Commit b2782ff0 authored by Arnaud Blanchard's avatar Arnaud Blanchard

Some doc about bash

parent cf38ee54
Debugging
---------
Use bash option **-x** to show each bash execution
bash -x my_script.sh
You will usually have to mush information. Active this option in your script only on the suspected bugging part.
set -x #Active debbugging
suspected_function
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](http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment