On Mon, Apr 08, 2013, Constantine Shulyupin wrote about "Re: bash q":
> For debugging bash scripts I use
> 
> set -o xtrace # long form of -x
> set -o pipefail
> set -o errexit

The last one also has a short form: "set -e".

You might also want to look at "set -v" - it also lists the commands it
runs, but before evaluation. In some cases both "set -v" and "set -x"
can come in handy.


-- 
Nadav Har'El                        |    Wednesday, Apr 24 2013, 15 Iyyar 5773
n...@math.technion.ac.il             |-----------------------------------------
Phone +972-523-790466, ICQ 13349191 |I want to be a human being, not a human
http://nadav.harel.org.il           |doing -- Scatman John

_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to