help-bash
[
Top
][
All Lists
]
Advanced
[
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
Hello,
Should the output of set -x in a bash script be the same as the order it is executed in?
# cat b.sh
#!/bin/bash
/usr/bin/tail -n 100 messages | /bin/grep blah | md5sum
# bash -x b.sh
+ 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.
Thanks.
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
[Help-bash] xtrace output order
,
Bob Hope
<=
Re: [Help-bash] xtrace output order
,
Pierre Gaston
,
2013/09/27
Re: [Help-bash] xtrace output order
,
Greg Wooledge
,
2013/09/27
Prev by Date:
Re: [Help-bash] When is it useful to use "sync"?
Next by Date:
Re: [Help-bash] xtrace output order
Previous by thread:
[Help-bash] When is it useful to use "sync"?
Next by thread:
Re: [Help-bash] xtrace output order
Index(es):
Date
Thread