The log form is more readable and self documented.
I prefer to use long form in scripts and short in command line.

Verbose mode:
set -o verbose
set -v
bash -v script.sh

http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_03.html

On Wed, Apr 24, 2013 at 10:19 PM, Nadav Har'El <n...@math.technion.ac.il> wrote:
> 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



-- 
Constantine Shulyupin
http://www.MakeLinux.co.il/
Embedded Linux Systems
Tel Aviv

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

Reply via email to