bash q
Nadav Har'El
nyh at math.technion.ac.il
Wed Apr 24 22:19:25 IDT 2013
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
nyh at 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
More information about the Linux-il
mailing list