Author: Stan Eisenstat
Subject: Re: [Cs323] sequences
Date: Monday, 23 Nov 2020, 08:47:48
> Message Posted By: Unknown
>
> Is the order in which a sequence is executed supposed to be "random"? For
> example: "echo a & echo b & echo c & echo d" seems to output the results
> in different orders each time I run it.
No, the order is not random, as you can see by replacing
each & above by a ;.
However, when you background successive echo commands,
the order in which they write and the order in which
their completions are reported could vary, depending on
how the O/S schedules them.
--Stan-
PREV
INDEX
NEXT