Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wildcards / concurrency issue

0 views
Skip to first unread message

zikester

unread,
Dec 2, 2009, 5:18:06 PM12/2/09
to
If I have one script A running something like:
for q in [0-9]*; do XXX; done

and then I have another script B that adds either
- a file that matches the wild card
- a file that does not match the wild card

into that same directory, while the script A is running, how does that
affect the output of script A?

Isaac

Stephane CHAZELAS

unread,
Dec 3, 2009, 3:27:37 AM12/3/09
to
2009-12-2, 14:18(-08), zikester:
[...]

It doesn't. The wildcard is expanded only once, when the for
loop is interpreted.

--
Stᅵphane

0 new messages