Post #3207985
2026-04-24 19:41 UTC
@tejr@mastodon.sdf.org
Without any arguments, wait will sit there until all its background processes have completed
Cursed!
I like the twist at the end though. Good engineering saves the day :)
Replies (1)
-
@tejr@mastodon.sdf.org 2026-04-26 07:40
@minoru@functional.cafe It's not so much the waiting-on-all function as the fact that it always exits 0; you lose all the exit values from the forked commands. That can be awkward in other languages too, but it's especially painful in POSIX shell script.