[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] xtrace ordering problem

From: B Hope
Subject: [Help-bash] xtrace ordering problem
Date: Fri, 27 Sep 2013 06:19:05 -0700


Apologies if you get this e-mail twice.

I am using "set -x" to debug a shell script. On a single core VM I get the debug output (the lines beginning "+ ") reversed. The script ends with the same result. Should the order of the output when using "-x" always be the same?

$ cat
/usr/bin/tail -n 100 messages | /bin/grep blah | md5sum

$ bash -x
+ md5sum
+ /usr/bin/grep blah
+ /usr/bin/tail -n 100 messages
hsdhdfhdfhdfhfhdfh -


Morgan Marine Insurance Services
Established Leading Marine Insurance Providers
Competitive Premiums & Discounted Scheme Rates for Motorboats, Jetskis, Yachts, Commercial Vessels, Ribs, Marine Trade Policies. We insure them all!
No obligation quotes and instant cover.

Cut your mobile bill by 30% in 30 seconds at

For cutting edge website design visit:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]