[Top][All Lists]

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

[Help-bash] xtrace output order

From: Bob Hope
Subject: [Help-bash] xtrace output order
Date: Fri, 27 Sep 2013 13:48:13 +0200


Should the output of set -x in a bash script be the same as the order it is executed in?

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

# bash -x
+ md5sum
+ /bin/grep blah
+ /usr/bin/tail -n 100 messages
d41d8cd98f00b204e9800998ecf8427e  -

One a single core VM I get the output above. On a multi-core physical machine, it's the other way round. The md5sum output remains the same, just the order of lines beginning "+" differs.


reply via email to

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